Skip to content

Commit

Permalink
improved 'add point' rubberband
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5101 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 26, 2006
1 parent be1e198 commit 608aa9c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/gui/qgsmaptoolvertexedit.cpp
Expand Up @@ -92,8 +92,10 @@ void QgsMapToolVertexEdit::canvasPressEvent(QMouseEvent * e)
createRubberBand();

if (mStartPointValid)
mRubberBand->addPoint(QgsPoint(x1,y1));
mRubberBand->addPoint(point);
{
mRubberBand->addPoint(QgsPoint(x1,y1));
}
mRubberBand->addPoint(toMapCoords(e->pos()));
mRubberBand->addPoint(QgsPoint(x2,y2));

}
Expand Down Expand Up @@ -128,10 +130,14 @@ void QgsMapToolVertexEdit::canvasPressEvent(QMouseEvent * e)
createRubberBand();

if (mStartPointValid)
mRubberBand->addPoint(QgsPoint(x1,y1));
{
mRubberBand->addPoint(QgsPoint(x1,y1));
}
mRubberBand->addPoint(toMapCoords(e->pos()));
if (mStopPointValid)
mRubberBand->addPoint(QgsPoint(x2,y2));
{
mRubberBand->addPoint(QgsPoint(x2,y2));
}

}
else if (mTool == DeleteVertex)
Expand Down

0 comments on commit 608aa9c

Please sign in to comment.