Skip to content
Permalink
Browse files
Ensure that we have a valid line in line decoration (#4241)
  • Loading branch information
wonder-sk authored and mach0 committed Nov 13, 2011
1 parent b8388ee commit a4b7b717836987debb85051194264ae44005a082
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -639,6 +639,10 @@ void QgsLineDecorationSymbolLayerV2::renderPolyline( const QPolygonF& points, Qg
}

int cnt = points.count();
if ( cnt < 2 )
{
return;
}
QPointF p2 = points.at( --cnt );
QPointF p1 = points.at( --cnt );
while ( p2 == p1 && cnt )

0 comments on commit a4b7b71

Please sign in to comment.