Merge pull request #321 from matthias-kuhn/rubberband

[FIX]: Build rubberband completely even with incomplete input
This commit is contained in:
mhugent 2012-11-09 08:03:42 -08:00
commit 716e188eb5

View File

@ -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 )