summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-03-07 13:47:42 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-03-07 13:47:42 +0000
commit0326e4287a1f6a4f52d9a3998adf8670e25c85da (patch)
treec46729df7d9b1c42222ebda19f688d2aa691aea6 /src/style-internal.cpp
parentRemove unused includes, etc. (diff)
downloadinkscape-0326e4287a1f6a4f52d9a3998adf8670e25c85da.tar.gz
inkscape-0326e4287a1f6a4f52d9a3998adf8670e25c85da.zip
Promote the path 'd' attribute to a property per SVG 2. Try 2.
See e88644b0 for first attempt and for comments.
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp4
1 files changed, 1 insertions, 3 deletions
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;