summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-11-03 01:11:56 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-11-03 01:11:56 +0000
commitc2daa449f50418c3b25ed000eb1e68a48faa719e (patch)
tree0f39ad1e2632303c43015e0243702f7a11f3cf55 /src/path-chemistry.cpp
parentAdd search and no results from stock icons. Improve text. Thanks Maren for th... (diff)
parentchange assignment to equality (diff)
downloadinkscape-c2daa449f50418c3b25ed000eb1e68a48faa719e.tar.gz
inkscape-c2daa449f50418c3b25ed000eb1e68a48faa719e.zip
Merge branch 'master' into SymbolsSearch
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index b3b0c8076..b824d15c7 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -430,6 +430,8 @@ sp_item_list_to_curves(const std::vector<SPItem*> &items, std::vector<SPItem*>&
Inkscape::XML::Node *parent = item->getRepr()->parent();
// remember id
char const *id = item->getRepr()->attribute("id");
+ // remember class
+ char const *class_attr = item->getRepr()->attribute("class");
// remember title
gchar *title = item->title();
// remember description
@@ -444,6 +446,8 @@ sp_item_list_to_curves(const std::vector<SPItem*> &items, std::vector<SPItem*>&
// restore id
repr->setAttribute("id", id);
+ // restore class
+ repr->setAttribute("class", class_attr);
// add the new repr to the parent
parent->appendChild(repr);
SPObject* newObj = document->getObjectByRepr(repr);