Skip to content
Permalink
Browse files
fix related to r15547, manage lines out of the drawing rectangle (emp…
…ty vectors of points)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15563 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Mar 22, 2011
1 parent 96d2ec5 commit f31ae58d18acaec25e0994222473a7d268296541
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -314,6 +314,9 @@ void QgsMarkerLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym

void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points, QgsSymbolV2RenderContext& context )
{
if ( ! points.isEmpty() )
return;

QPointF lastPt = points[0];
double lengthLeft = 0; // how much is left until next marker
bool first = true;
@@ -383,7 +386,9 @@ static double _averageAngle( const QPointF& prevPt, const QPointF& pt, const QPo

void QgsMarkerLineSymbolLayerV2::renderPolylineVertex( const QPolygonF& points, QgsSymbolV2RenderContext& context )
{
QPointF lastPt = points[0];
if ( points.isEmpty() )
return;

QgsRenderContext& rc = context.renderContext();

double origAngle = mMarker->angle();

0 comments on commit f31ae58

Please sign in to comment.