Skip to content

Commit 2689f99

Browse files
committedOct 26, 2013
Correct topology rubber band bug for first and last vertexes
1 parent 00c0cef commit 2689f99

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎src/app/nodetool/qgsmaptoolnodetool.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void QgsMapToolNodeTool::canvasMoveEvent( QMouseEvent * e )
311311
offset = posMapCoord - mPosMapCoordBackup;
312312
for ( int i = 0; i < mTopologyRubberBand.size(); i++ )
313313
{
314-
for ( int pointIndex = 0; pointIndex < mTopologyRubberBand[i]->numberOfVertices() - 1; pointIndex++ )
314+
for ( int pointIndex = 0; pointIndex < mTopologyRubberBand[i]->numberOfVertices(); pointIndex++ )
315315
{
316316
if ( mTopologyRubberBandVertexes[i]->contains( pointIndex ) )
317317
{
@@ -321,10 +321,6 @@ void QgsMapToolNodeTool::canvasMoveEvent( QMouseEvent * e )
321321
break;
322322
}
323323
mTopologyRubberBand[i]->movePoint( pointIndex, *point + offset );
324-
if ( pointIndex == 0 )
325-
{
326-
mTopologyRubberBand[i]->movePoint( pointIndex, *point + offset );
327-
}
328324
}
329325
}
330326
}

0 commit comments

Comments
 (0)
Please sign in to comment.