Skip to content

Commit

Permalink
when capturing line and polygons: don't place a vertex at the positio…
Browse files Browse the repository at this point in the history
…n where the right click appears (the right click is now just to finish the line/polygon as suggested by Luca)

git-svn-id: http://svn.osgeo.org/qgis/trunk@5570 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 8, 2006
1 parent dc63a47 commit 9d4766b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -210,11 +210,11 @@ QMessageBox::Ok);

QgsPoint digitisedPoint = toMapCoords(e->pos());
vlayer->snapPoint(digitisedPoint, tolerance);
mCaptureList.push_back(digitisedPoint);
mRubberBand->addPoint(digitisedPoint);

if (e->button() == Qt::LeftButton)
{
mCaptureList.push_back(digitisedPoint);
mRubberBand->addPoint(digitisedPoint);
mCapturing = TRUE;
}
else if (e->button() == Qt::RightButton)
Expand Down

0 comments on commit 9d4766b

Please sign in to comment.