summaryrefslogtreecommitdiffstats
path: root/src/display/drawing-shape.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-11-08 14:56:09 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-11-08 14:56:09 +0000
commit517288aebef7426ab1a70065746d0a81d545568d (patch)
tree2a35356ce5c50d302e69de010a7047af78503013 /src/display/drawing-shape.cpp
parentfix bug 1793940 ODG image export (diff)
downloadinkscape-517288aebef7426ab1a70065746d0a81d545568d.tar.gz
inkscape-517288aebef7426ab1a70065746d0a81d545568d.zip
Implement the remaining vector effects properties.
Diffstat (limited to 'src/display/drawing-shape.cpp')
-rw-r--r--src/display/drawing-shape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/drawing-shape.cpp b/src/display/drawing-shape.cpp
index 05123297e..612593ad8 100644
--- a/src/display/drawing-shape.cpp
+++ b/src/display/drawing-shape.cpp
@@ -180,7 +180,7 @@ DrawingShape::_renderStroke(DrawingContext &dc)
if( has_stroke ) {
// TODO: remove segments outside of bbox when no dashes present
dc.path(_curve->get_pathvector());
- if (_style && _style->vector_effect.computed == SP_VECTOR_EFFECT_NON_SCALING_STROKE) {
+ if (_style && _style->vector_effect.stroke) {
dc.restore();
dc.save();
}
@@ -260,7 +260,7 @@ DrawingShape::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigne
_nrstyle.applyFill(dc);
dc.fillPreserve();
}
- if (_style && _style->vector_effect.computed == SP_VECTOR_EFFECT_NON_SCALING_STROKE) {
+ if (_style && _style->vector_effect.stroke) {
dc.restore();
dc.save();
}