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/qgis@14657 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 14, 2010
1 parent 8604b14 commit 354e991
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsrubberband.cpp
Original file line number Diff line number Diff line change
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 354e991

Please sign in to comment.