From 52059c7c7f059a0928efd48d0ef545dabc30a3a7 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 10 Feb 2017 11:06:54 +0100 Subject: Do not delete presentation attributes. Styling source is now tracked and not automatically converted to properties in a style attribute. Fixed bugs: - https://launchpad.net/bugs/1663511 (bzr r15500) --- src/sp-object.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sp-object.cpp') diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 7807703f6..9f15935ac 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -1105,7 +1105,10 @@ Inkscape::XML::Node* SPObject::write(Inkscape::XML::Document *doc, Inkscape::XML * possibly we should write property attributes instead of a style * attribute. */ - sp_style_unset_property_attrs (this); + // With the changes to preserves style source this is no longer needed + // and the above comment no longer applies. I leave it here until these + // change are well tested. + // sp_style_unset_property_attrs (this); } #ifdef OBJECT_TRACE -- cgit v1.2.3