summaryrefslogtreecommitdiffstats
path: root/src/style-internal.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/style-internal.cpp
parentAdd transforms fixes (diff)
downloadinkscape-30745770be6b16bed8129c757727fa55313160e0.tar.gz
inkscape-30745770be6b16bed8129c757727fa55313160e0.zip
Revert TAV d work for testing
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index f8f2042c4..95a0b5fc9 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) && src) ||
+ if ( ((flags & SP_STYLE_FLAG_ALWAYS)) ||
((flags & SP_STYLE_FLAG_IFSET) && set && src) ||
((flags & SP_STYLE_FLAG_IFDIFF) && set && src && dfp)) {
should_write = true;
@@ -799,12 +799,14 @@ 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;