Skip to content

Commit

Permalink
Fix bad fills when using marker line with render effects (fix #15696)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 14, 2016
1 parent 47c1f6e commit a0bfc10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/symbology-ng/qgslinesymbollayer.cpp
Expand Up @@ -870,6 +870,9 @@ void QgsMarkerLineSymbolLayer::renderPolyline( const QPolygonF& points, QgsSymbo
}
}


context.renderContext().painter()->save();

if ( qgsDoubleNear( offset, 0.0 ) )
{
if ( placement == Interval )
Expand All @@ -896,6 +899,8 @@ void QgsMarkerLineSymbolLayer::renderPolyline( const QPolygonF& points, QgsSymbo
renderPolylineVertex( points2, context, placement );
}
}

context.renderContext().painter()->restore();
}

void QgsMarkerLineSymbolLayer::renderPolygonOutline( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolRenderContext& context )
Expand Down

0 comments on commit a0bfc10

Please sign in to comment.