mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[FIX]: Build rubberband completely even with incomplete input
An empty polyline in a mulipolyline led to the rubberband ignoring all further polylines. e.g. addGeometry( [[(1,2)(2,3)][][(2,3)(3,4)]] ) was ignoring the polyline (2,3)(3,4).
This commit is contained in:
parent
1dacbd63fe
commit
36452a8e24
@ -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