From 0326e4287a1f6a4f52d9a3998adf8670e25c85da Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 7 Mar 2018 14:47:42 +0100 Subject: Promote the path 'd' attribute to a property per SVG 2. Try 2. See e88644b0 for first attempt and for comments. --- src/style-internal.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/style-internal.cpp') diff --git a/src/style-internal.cpp b/src/style-internal.cpp index ed1c79738..ed2937885 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -59,7 +59,7 @@ using Inkscape::CSSOStringStream; inline bool should_write( guint const flags, bool set, bool dfp, bool src) { bool should_write = false; - if ( ((flags & SP_STYLE_FLAG_ALWAYS)) || + if ( ((flags & SP_STYLE_FLAG_ALWAYS) && src) || ((flags & SP_STYLE_FLAG_IFSET) && set && src) || ((flags & SP_STYLE_FLAG_IFDIFF) && set && src && dfp)) { should_write = true; @@ -760,14 +760,12 @@ void SPIEnumBits::read( gchar const *str ) { if( !str ) return; - std::cout << "SPIEnumBits: " << name << ": " << str << std::endl; if( !strcmp(str, "inherit") ) { set = true; inherit = true; } else { for (unsigned i = 0; enums[i].key; i++) { if (!strcmp(str, enums[i].key)) { - std::cout << " found: " << enums[i].key << std::endl; set = true; inherit = false; value += enums[i].value; -- cgit v1.2.3