Skip to content

Commit 615ad1a

Browse files
author
jef
committedNov 14, 2010
revert accidental change
git-svn-id: http://svn.osgeo.org/qgis/trunk@14657 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 23fe359 commit 615ad1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/gui/qgsrubberband.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ void QgsRubberBand::addPoint( const QgsPoint & p, bool do_update /* = true */, i
9191
mPoints.push_back( QList<QgsPoint>() );
9292
}
9393

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

96101
if ( do_update )

0 commit comments

Comments
 (0)
Please sign in to comment.