diff options
| author | Aurèle Duda <aurele.duda@gmail.com> | 2017-10-31 10:32:02 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2017-10-31 10:32:02 +0000 |
| commit | 36216068dee24b54d67a35854d9160a9ec5f76dc (patch) | |
| tree | bf6b12d131fd4553884d72df8829befbeae51387 /src/path-chemistry.cpp | |
| parent | fix asserts (diff) | |
| download | inkscape-36216068dee24b54d67a35854d9160a9ec5f76dc.tar.gz inkscape-36216068dee24b54d67a35854d9160a9ec5f76dc.zip | |
fix removing class when object to path
Diffstat (limited to '')
| -rw-r--r-- | src/path-chemistry.cpp | 4 |
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); |
