Skip to content
Permalink
Browse files

Correct topology rubber band bug for first and last vertexes

  • Loading branch information
leyan committed Oct 26, 2013
1 parent 00c0cef commit 2689f99703d3adc3571441aeea881a76fbbc342f
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/app/nodetool/qgsmaptoolnodetool.cpp
@@ -311,7 +311,7 @@ void QgsMapToolNodeTool::canvasMoveEvent( QMouseEvent * e )
offset = posMapCoord - mPosMapCoordBackup;
for ( int i = 0; i < mTopologyRubberBand.size(); i++ )
{
for ( int pointIndex = 0; pointIndex < mTopologyRubberBand[i]->numberOfVertices() - 1; pointIndex++ )
for ( int pointIndex = 0; pointIndex < mTopologyRubberBand[i]->numberOfVertices(); pointIndex++ )
{
if ( mTopologyRubberBandVertexes[i]->contains( pointIndex ) )
{
@@ -321,10 +321,6 @@ void QgsMapToolNodeTool::canvasMoveEvent( QMouseEvent * e )
break;
}
mTopologyRubberBand[i]->movePoint( pointIndex, *point + offset );
if ( pointIndex == 0 )
{
mTopologyRubberBand[i]->movePoint( pointIndex, *point + offset );
}
}
}
}

0 comments on commit 2689f99

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