Skip to content

Commit 5677103

Browse files
committed
Ensure that we have a valid line in line decoration (#4241)
1 parent 3c67104 commit 5677103

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/symbology-ng/qgslinesymbollayerv2.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@ void QgsLineDecorationSymbolLayerV2::renderPolyline( const QPolygonF& points, Qg
643643
}
644644

645645
int cnt = points.count();
646+
if ( cnt < 2 )
647+
{
648+
return;
649+
}
646650
QPointF p2 = points.at( --cnt );
647651
QPointF p1 = points.at( --cnt );
648652
while ( p2 == p1 && cnt )

0 commit comments

Comments
 (0)