Navigation Menu

Skip to content

Commit

Permalink
revert accidental change
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14657 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 14, 2010
1 parent 23fe359 commit 615ad1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsrubberband.cpp
Expand Up @@ -91,6 +91,11 @@ void QgsRubberBand::addPoint( const QgsPoint & p, bool do_update /* = true */, i
mPoints.push_back( QList<QgsPoint>() );
}

//we need to set two points at the begin of the rubber band for operations that move the last point
if ( mPoints[geometryIndex].size() == 0 )
{
mPoints[geometryIndex].push_back( p );
}
mPoints[geometryIndex].push_back( p );

if ( do_update )
Expand Down

0 comments on commit 615ad1a

Please sign in to comment.