From 36216068dee24b54d67a35854d9160a9ec5f76dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A8le=20Duda?= Date: Tue, 31 Oct 2017 10:32:02 +0000 Subject: fix removing class when object to path --- src/path-chemistry.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/path-chemistry.cpp') 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 &items, std::vector& 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 &items, std::vector& // 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); -- cgit v1.2.3