diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2012-10-18 18:06:35 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2012-10-18 18:06:35 +0000 |
| commit | 9158a2ccc3f6238e3f511d078b4d0ef942f30e9b (patch) | |
| tree | cb4a833c8d624bfb1d36052c8088c4f835cfb031 /src/xml | |
| parent | Fix SVG formatting (EMF import): (diff) | |
| parent | Translations. Latvian translation update by Jānis Eisaks. (diff) | |
| download | inkscape-9158a2ccc3f6238e3f511d078b4d0ef942f30e9b.tar.gz inkscape-9158a2ccc3f6238e3f511d078b4d0ef942f30e9b.zip | |
merge from trunk (r11808)
(bzr r11668.1.30)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/simple-node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/simple-node.cpp b/src/xml/simple-node.cpp index 55bd28afe..4965f81c8 100644 --- a/src/xml/simple-node.cpp +++ b/src/xml/simple-node.cpp @@ -346,7 +346,7 @@ SimpleNode::setAttribute(gchar const *name, gchar const *value, bool const /*is_ // tree (and thus has no parent), default values will not be tested. if( !strcmp( name, "style" ) && (flags >= SP_ATTR_CLEAN_STYLE_WARN) ) { g_free( cleaned_value ); - cleaned_value = const_cast<char*>(sp_attribute_clean_style( this, value, flags ).c_str()); + cleaned_value = g_strdup( sp_attribute_clean_style( this, value, flags ).c_str() ); // if( g_strcmp0( value, cleaned_value ) ) { // g_warning( "SimpleNode::setAttribute: %s", id.c_str() ); // g_warning( " original: %s", value); |
