diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2012-10-16 10:38:57 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2012-10-16 10:38:57 +0000 |
| commit | 46eea9b1e2f4bde9e8a4c48c5fbda05531153b6b (patch) | |
| tree | 636965e564d9a43aec460b7360c737f0d6d01700 /src/xml/simple-node.cpp | |
| parent | Better attempt at finding primitive filter region for percent and userSpaceOn... (diff) | |
| download | inkscape-46eea9b1e2f4bde9e8a4c48c5fbda05531153b6b.tar.gz inkscape-46eea9b1e2f4bde9e8a4c48c5fbda05531153b6b.zip | |
Fix crash resulting from r11646.
(bzr r11805)
Diffstat (limited to '')
| -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); |
