Skip to content
Permalink
Browse files

improved 'add point' rubberband

git-svn-id: http://svn.osgeo.org/qgis/trunk@5101 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 26, 2006
1 parent be1e198 commit 608aa9ca792985a45e1b36d3881db0fc2da93071
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/gui/qgsmaptoolvertexedit.cpp
@@ -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));

}
@@ -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)

0 comments on commit 608aa9c

Please sign in to comment.
You can’t perform that action at this time.