summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-clone-original.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-10-01 15:49:53 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-10-01 15:49:53 +0000
commit17edb1a6d1a35aeeeb4e07ec64ceec63351e8a25 (patch)
tree86d7978cc682693b3841826c1d9036493a21c159 /src/live_effects/lpe-clone-original.cpp
parentRemoved all GSList occurences in .h files (diff)
parentA little styling tweak to a LPE expander (diff)
downloadinkscape-17edb1a6d1a35aeeeb4e07ec64ceec63351e8a25.tar.gz
inkscape-17edb1a6d1a35aeeeb4e07ec64ceec63351e8a25.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/live_effects/lpe-clone-original.cpp')
-rw-r--r--src/live_effects/lpe-clone-original.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-clone-original.cpp b/src/live_effects/lpe-clone-original.cpp
index b035cc1d0..6e5ad66bf 100644
--- a/src/live_effects/lpe-clone-original.cpp
+++ b/src/live_effects/lpe-clone-original.cpp
@@ -181,7 +181,7 @@ LPECloneOriginal::cloneAttrbutes(SPObject *origin, SPObject *dest, const char *
g_strfreev (styleattarray);
Glib::ustring css_str;
sp_repr_css_write_string(css_dest,css_str);
- dest->getRepr()->setAttribute("style", css_str.c_str());
+ dest->getRepr()->setAttribute("style", g_strdup(css_str.c_str()));
}
void
@@ -189,9 +189,9 @@ LPECloneOriginal::doBeforeEffect (SPLPEItem const* lpeitem){
if (linkeditem.linksToItem()) {
Glib::ustring attr = "";
if (method != CLM_NONE) {
- attr.append("d,");
+ attr += Glib::ustring("d,");
}
- attr.append(Glib::ustring(attributes.param_getSVGValue()).append(","));
+ attr += Glib::ustring(attributes.param_getSVGValue()) + Glib::ustring(",");
if (attr.size() && !Glib::ustring(attributes.param_getSVGValue()).size()) {
attr.erase (attr.size()-1, 1);
}
@@ -199,7 +199,7 @@ LPECloneOriginal::doBeforeEffect (SPLPEItem const* lpeitem){
if (style_attr.size() && !Glib::ustring(style_attributes.param_getSVGValue()).size()) {
style_attr.erase (style_attr.size()-1, 1);
}
- style_attr.append(Glib::ustring(style_attributes.param_getSVGValue()).append(","));
+ style_attr += Glib::ustring(style_attributes.param_getSVGValue()) + Glib::ustring(",");
SPItem * origin = SP_ITEM(linkeditem.getObject());
SPItem * dest = SP_ITEM(sp_lpe_item);