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 a4b7b71
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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.