Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsrubberband.cpp
6 changes: 6 additions & 0 deletions src/gui/qgsrubberband.cpp
Original file line number Diff line number Diff line change
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