Skip to content

Commit f31ae58

Browse files
author
brushtyler
committed
fix related to r15547, manage lines out of the drawing rectangle (empty vectors of points)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15563 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 96d2ec5 commit f31ae58

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/symbology-ng/qgslinesymbollayerv2.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ void QgsMarkerLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym
314314

315315
void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points, QgsSymbolV2RenderContext& context )
316316
{
317+
if ( ! points.isEmpty() )
318+
return;
319+
317320
QPointF lastPt = points[0];
318321
double lengthLeft = 0; // how much is left until next marker
319322
bool first = true;
@@ -383,7 +386,9 @@ static double _averageAngle( const QPointF& prevPt, const QPointF& pt, const QPo
383386

384387
void QgsMarkerLineSymbolLayerV2::renderPolylineVertex( const QPolygonF& points, QgsSymbolV2RenderContext& context )
385388
{
386-
QPointF lastPt = points[0];
389+
if ( points.isEmpty() )
390+
return;
391+
387392
QgsRenderContext& rc = context.renderContext();
388393

389394
double origAngle = mMarker->angle();

0 commit comments

Comments
 (0)