Skip to content
Permalink
Browse files

correct bug in topology rubberband when OTF is enabled

  • Loading branch information
leyan committed Oct 25, 2013
1 parent 00c0cef commit 990a25a3a3f677a1f6ff43466468436efab2fbe7
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/nodetool/qgsmaptoolnodetool.cpp
@@ -187,7 +187,7 @@ void QgsMapToolNodeTool::createTopologyRubberBands( QgsVectorLayer* vlayer, cons
}
else
{
trb->addPoint( topolGeometry->vertexAt( tVertex ) );
trb->addPoint( toMapCoordinates( vlayer, topolGeometry->vertexAt( tVertex ) ) );
if ( tVertex == tVertexFirst ) // cycle first vertex need to be added also
{
movingPoints->insert( movingPointIndex );
@@ -206,14 +206,14 @@ void QgsMapToolNodeTool::createTopologyRubberBands( QgsVectorLayer* vlayer, cons
// find first no matching vertex
if ( dist > ZERO_TOLERANCE || !vertexMap[at]->isSelected() ) // problem with double precision
{
trb->addPoint( topolGeometry->vertexAt( tVertex ) );
trb->addPoint( toMapCoordinates( vlayer, topolGeometry->vertexAt( tVertex ) ) );
break; // found first vertex
}
else // add moving point to rubberband
{
if ( addedPoints->contains( tVertex ) )
break; // just preventing to circle
trb->addPoint( topolGeometry->vertexAt( tVertex ) );
trb->addPoint( toMapCoordinates( vlayer, topolGeometry->vertexAt( tVertex ) ) );
movingPoints->insert( movingPointIndex );
movingPointIndex++;
addedPoints->insert( tVertex );

0 comments on commit 990a25a

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