summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab55ee2)
raw | patch | inline | side by side (parent: ab55ee2)
author | JucaBlues <JucaBlues@users.sourceforge.net> | |
Wed, 14 Jan 2009 06:44:31 +0000 (06:44 +0000) | ||
committer | JucaBlues <JucaBlues@users.sourceforge.net> | |
Wed, 14 Jan 2009 06:44:31 +0000 (06:44 +0000) |
src/draw-context.cpp | patch | blob | history |
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index 7fdda437c391263de727bd0d453dfd891d2ce7b8..98fee29bf4bff9449b27ab296248b04179f7a319 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
if (shape_applied) {
// apply original stroke color as fill and unset stroke; then return
SPCSSAttr *css = sp_repr_css_attr_new();
- sp_repr_css_set_property (css, "fill", cstroke);
+
+ if (!strcmp(cstroke, "none")){
+ sp_repr_css_set_property (css, "fill", "black");
+ } else {
+ sp_repr_css_set_property (css, "fill", cstroke);
+ }
sp_repr_css_set_property (css, "stroke", "none");
sp_desktop_apply_css_recursive(SP_OBJECT(item), css, true);
sp_repr_css_attr_unref(css);