mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #321 from matthias-kuhn/rubberband
[FIX]: Build rubberband completely even with incomplete input
This commit is contained in:
commit
716e188eb5
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user