Skip to content

Commit

Permalink
Merge pull request #321 from matthias-kuhn/rubberband
Browse files Browse the repository at this point in the history
[FIX]: Build rubberband completely even with incomplete input
  • Loading branch information
mhugent committed Nov 9, 2012
2 parents 3f72a6a + 36452a8 commit 716e188
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsrubberband.cpp
Expand Up @@ -270,6 +270,12 @@ void QgsRubberBand::addGeometry( QgsGeometry* geom, QgsVectorLayer* layer )
for ( int i = 0; i < mline.size(); ++i, ++idx )
{
QgsPolyline line = mline[i];

if ( line.size() == 0 )
{
--idx;
}

for ( int j = 0; j < line.size(); ++j )
{
if ( layer )
Expand Down

0 comments on commit 716e188

Please sign in to comment.