Skip to content

Commit

Permalink
Ensure that we have a valid line in line decoration (#4241)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 3, 2011
1 parent 3c67104 commit 5677103
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -643,6 +643,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 )
Expand Down

0 comments on commit 5677103

Please sign in to comment.