Skip to content
Permalink
Browse files

Ensure that we have a valid line in line decoration (#4241)

  • Loading branch information
wonder-sk committed Oct 3, 2011
1 parent 3c67104 commit 567710393548f2f30bfc77d3bc623df6d2be8488
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -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 )

0 comments on commit 5677103

Please sign in to comment.
You can’t perform that action at this time.