From f81751abb770d0367d6c515cdcb56a7954714eab Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Sat, 23 Sep 2017 10:23:47 +0200 Subject: Transform duplicate object only when clipping or masking --- src/sp-clippath.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/sp-clippath.cpp') diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp index 52c043aee..a56dfd85a 100644 --- a/src/sp-clippath.cpp +++ b/src/sp-clippath.cpp @@ -292,7 +292,7 @@ sp_clippath_view_list_remove(SPClipPathView *list, SPClipPathView *view) } // Create a mask element (using passed elements), add it to -const gchar *SPClipPath::create (std::vector &reprs, SPDocument *document, Geom::Affine const* applyTransform) +const gchar *SPClipPath::create (std::vector &reprs, SPDocument *document) { Inkscape::XML::Node *defsrepr = document->getDefs()->getRepr(); @@ -306,12 +306,7 @@ const gchar *SPClipPath::create (std::vector &reprs, SPDoc for (std::vector::const_iterator it = reprs.begin(); it != reprs.end(); ++it) { Inkscape::XML::Node *node = (*it); - SPItem *item = SP_ITEM(clip_path_object->appendChildRepr(node)); - - if (NULL != applyTransform) { - Geom::Affine transform (item->transform * (*applyTransform)); - item->doWriteTransform(transform); - } + clip_path_object->appendChildRepr(node); } Inkscape::GC::release(repr); -- cgit v1.2.3