diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-11-01 19:36:16 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-11-01 19:36:16 +0000 |
| commit | 821d7f7787e19ce6f094fc54b8dc7bf69e0b176f (patch) | |
| tree | 2dcc88fe0c1aebf31b387150ee98329ba472c999 | |
| parent | Add margins to make Trace Bitmap dialog not so ugly (diff) | |
| download | inkscape-821d7f7787e19ce6f094fc54b8dc7bf69e0b176f.tar.gz inkscape-821d7f7787e19ce6f094fc54b8dc7bf69e0b176f.zip | |
fix #497 don't set 'd' style property
| -rw-r--r-- | src/style-internal.cpp | 1 | ||||
| -rw-r--r-- | src/style-internal.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index 18be536f3..bce687d7f 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -1099,6 +1099,7 @@ SPIString::read( gchar const *str ) { Glib::ustring str_temp(str); if (id() == SP_ATTR_D && style_src == SP_STYLE_SRC_ATTRIBUTE) { set = false; + return; } if (id() == SP_PROP_FONT_FAMILY) { // Family names may be quoted in CSS, internally we use unquoted names. diff --git a/src/style-internal.h b/src/style-internal.h index d04617387..fb24b9631 100644 --- a/src/style-internal.h +++ b/src/style-internal.h @@ -150,9 +150,9 @@ public: } if ( !set || (has_important && !important) ) { + style_src = source; read( stripped.c_str() ); if ( set ) { - style_src = source; if (has_important) { important = true; } |
