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/preferences.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/preferences.cpp')
| -rw-r--r-- | src/preferences.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp index 1f985a629..4615fd6e1 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -489,18 +489,18 @@ void Preferences::setString(Glib::ustring const &pref_path, Glib::ustring const void Preferences::setStyle(Glib::ustring const &pref_path, SPCSSAttr *style) { - Glib::ustring css_str; - sp_repr_css_write_string(style, css_str); - _setRawValue(pref_path, css_str.c_str()); + gchar *css_str = sp_repr_css_write_string(style); + _setRawValue(pref_path, css_str); + g_free(css_str); } void Preferences::mergeStyle(Glib::ustring const &pref_path, SPCSSAttr *style) { SPCSSAttr *current = getStyle(pref_path); sp_repr_css_merge(current, style); - Glib::ustring css_str; - sp_repr_css_write_string(current, css_str); - _setRawValue(pref_path, css_str.c_str()); + gchar *css_str = sp_repr_css_write_string(current); + _setRawValue(pref_path, css_str); + g_free(css_str); sp_repr_css_attr_unref(current); } |
