summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-04-21 22:18:49 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-04-23 21:37:56 +0000
commitad1290795e1334bb4fe73c7bbc3aa7aefdc0aacf (patch)
tree130e3ba2d114229c6840000ee03fb8d3616fbf8b /src/style-internal.cpp
parentRemove some documents updates (diff)
downloadinkscape-ad1290795e1334bb4fe73c7bbc3aa7aefdc0aacf.tar.gz
inkscape-ad1290795e1334bb4fe73c7bbc3aa7aefdc0aacf.zip
Fix promote d
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 95a0b5fc9..f8f2042c4 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;
@@ -799,14 +799,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;