summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2014-03-13 22:37:07 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2014-03-13 22:37:07 +0000
commit32ef25632164e5af8766a5364400b579edde4ebf (patch)
treee2fedf64a96e22351dae5321822dd902f6c9314e /src/style.cpp
parentFix gradient position on document import (bug #1283193) (diff)
downloadinkscape-32ef25632164e5af8766a5364400b579edde4ebf.tar.gz
inkscape-32ef25632164e5af8766a5364400b579edde4ebf.zip
Reimplement global aliasing toggle as a 'shape-rendering' property
on the root element. (bzr r13146)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index de5b23854..132972164 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1936,7 +1936,15 @@ sp_style_merge_from_parent(SPStyle *const style, SPStyle const *const parent)
if (!style->color_rendering.set || style->color_rendering.inherit) {
style->color_rendering.computed = parent->color_rendering.computed;
}
-
+ if (!style->image_rendering.set || style->image_rendering.inherit) {
+ style->image_rendering.computed = parent->image_rendering.computed;
+ }
+ if (!style->shape_rendering.set || style->shape_rendering.inherit) {
+ style->shape_rendering.computed = parent->shape_rendering.computed;
+ }
+ if (!style->text_rendering.set || style->text_rendering.inherit) {
+ style->text_rendering.computed = parent->text_rendering.computed;
+ }
}
template <typename T>