Skip to content

Commit

Permalink
fix related to r15547, manage lines out of the drawing rectangle (emp…
Browse files Browse the repository at this point in the history
…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 f31ae58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f31ae58

Please sign in to comment.