diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-09-03 06:35:01 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-09-03 06:35:01 +0000 |
| commit | d4f5006264e2e19a9fe50968a2e422b83785821c (patch) | |
| tree | 934174c6829e8a96dbffa5f6207d462723fbedca /src/sp-object.cpp | |
| parent | Fix for 422644 : Show filename in statusbar on saving (diff) | |
| download | inkscape-d4f5006264e2e19a9fe50968a2e422b83785821c.tar.gz inkscape-d4f5006264e2e19a9fe50968a2e422b83785821c.zip | |
revert rev 11646: build issue with dbus (forgot to adapt some more, dbus was not enabled) and other issues
(bzr r11649)
Diffstat (limited to 'src/sp-object.cpp')
| -rw-r--r-- | src/sp-object.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 9ceeaf262..892c89a15 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -1031,9 +1031,15 @@ Inkscape::XML::Node * SPObject::sp_object_private_write(SPObject *object, Inksca if( prefs->getBool("/options/svgoutput/check_on_editing") ) { unsigned int flags = sp_attribute_clean_get_prefs(); - Glib::ustring s_cleaned = sp_attribute_clean_style( repr, s, flags ); + gchar *s_cleaned = sp_attribute_clean_style( repr, s, flags ); + + // g_warning("SPObject::sp_object_private_write: %s", object->getId() ); + // g_warning(" old: :%s:", repr->attribute("style") ); + // g_warning(" new: :%s:", s ); + // g_warning(" cleaned: :%s:", s_cleaned ); + g_free( s ); - s = (s_cleaned.empty() ? NULL : g_strdup (s_cleaned.c_str())); + s = s_cleaned; } if( s == NULL || strcmp(s,"") == 0 ) { |
