summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/style.cpp b/src/style.cpp
index de5b23854..c57cf6349 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>
@@ -4365,7 +4373,7 @@ sp_style_write_ilengthornormal(gchar *p, gint const len, gchar const *const key,
* Write SPIDashArray object into string.
*/
static gint
-sp_style_write_idasharray(gchar *p, gint const len, gchar const *const key,
+sp_style_write_idasharray(gchar *p, gint const len, gchar const *const /*key*/,
SPIDashArray const *const val, SPIDashArray const *const base, guint const flags)
{
if ((flags & SP_STYLE_FLAG_ALWAYS)