Skip to content

Commit a0bfc10

Browse files
committedOct 14, 2016
Fix bad fills when using marker line with render effects (fix #15696)
1 parent 47c1f6e commit a0bfc10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/symbology-ng/qgslinesymbollayer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,9 @@ void QgsMarkerLineSymbolLayer::renderPolyline( const QPolygonF& points, QgsSymbo
870870
}
871871
}
872872

873+
874+
context.renderContext().painter()->save();
875+
873876
if ( qgsDoubleNear( offset, 0.0 ) )
874877
{
875878
if ( placement == Interval )
@@ -896,6 +899,8 @@ void QgsMarkerLineSymbolLayer::renderPolyline( const QPolygonF& points, QgsSymbo
896899
renderPolylineVertex( points2, context, placement );
897900
}
898901
}
902+
903+
context.renderContext().painter()->restore();
899904
}
900905

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

0 commit comments

Comments
 (0)
Please sign in to comment.