Skip to content
Permalink
Browse files

Merge pull request #321 from matthias-kuhn/rubberband

[FIX]: Build rubberband completely even with incomplete input
  • Loading branch information
mhugent committed Nov 9, 2012
2 parents 3f72a6a + 36452a8 commit 716e188eb59b541a4d863a8a44aa5d7fd5f9c005
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsrubberband.cpp
@@ -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 )

0 comments on commit 716e188

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