summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-04-14 17:04:15 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-04-23 21:37:56 +0000
commit30745770be6b16bed8129c757727fa55313160e0 (patch)
tree159d6da29ea23e0d5443c0149e55196ec884e08a /src/splivarot.cpp
parentAdd transforms fixes (diff)
downloadinkscape-30745770be6b16bed8129c757727fa55313160e0.tar.gz
inkscape-30745770be6b16bed8129c757727fa55313160e0.zip
Revert TAV d work for testing
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index d8c5d929f..6974e6668 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -1213,13 +1213,9 @@ sp_item_path_outline(SPItem *item, SPDesktop *desktop, bool legacy)
gchar const *opacity;
gchar const *filter;
- // Copying stroke style to fill will fail for properties not defined by style attribute
- // (i.e., properties defined in style sheet or by attributes).
-
- // Stroke
SPCSSAttr *ncss = 0;
{
- ncss = sp_css_attr_from_style(i_style, SP_STYLE_FLAG_ALWAYS | SP_STYLE_FLAG_IFSRC);
+ ncss = sp_css_attr_from_style(i_style, SP_STYLE_FLAG_ALWAYS);
gchar const *s_val = sp_repr_css_property(ncss, "stroke", NULL);
gchar const *s_opac = sp_repr_css_property(ncss, "stroke-opacity", NULL);
opacity = sp_repr_css_property(ncss, "opacity", NULL);
@@ -1238,11 +1234,10 @@ sp_item_path_outline(SPItem *item, SPDesktop *desktop, bool legacy)
sp_repr_css_unset_property(ncss, "marker-mid");
sp_repr_css_unset_property(ncss, "marker-end");
}
-
- // Fill
+ //fill
SPCSSAttr *ncsf = 0;
{
- ncsf = sp_css_attr_from_style(i_style, SP_STYLE_FLAG_ALWAYS | SP_STYLE_FLAG_IFSRC);
+ ncsf = sp_css_attr_from_style(i_style, SP_STYLE_FLAG_ALWAYS);
sp_repr_css_set_property(ncsf, "stroke", "none");
sp_repr_css_set_property(ncsf, "stroke-opacity", "1.0");
sp_repr_css_set_property(ncsf, "filter", NULL);
@@ -1339,6 +1334,7 @@ sp_item_path_outline(SPItem *item, SPDesktop *desktop, bool legacy)
delete theRes;
} else {
+
orig->Outline(res, 0.5 * o_width, o_join, o_butt, 0.5 * o_miter);
orig->Coalesce(0.5 * o_width);
@@ -1527,7 +1523,6 @@ sp_item_path_outline(SPItem *item, SPDesktop *desktop, bool legacy)
markers->setAttribute("clip-path", clip_path);
}
}
-
gchar const *paint_order = sp_repr_css_property(ncss, "paint-order", NULL);
SPIPaintOrder temp;
temp.read( paint_order );
@@ -1630,12 +1625,10 @@ sp_item_path_outline(SPItem *item, SPDesktop *desktop, bool legacy)
} else if(did) {
out = g_repr;
}
-
SPCSSAttr *r_style = sp_repr_css_attr_new();
sp_repr_css_set_property(r_style, "opacity", opacity);
sp_repr_css_set_property(r_style, "filter", filter);
sp_repr_css_change(out, r_style, "style");
-
sp_repr_css_attr_unref(r_style);
if (unique) {
parent->appendChild(out);