From 6b96232d171b4ba04567c096dbe9e65402eaa68f Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sat, 22 Apr 2017 14:21:49 -0400 Subject: avoid double transform of element during copy. (Bug 1679428) Fixed bugs: - https://launchpad.net/bugs/1679428 (bzr r15631) --- src/ui/clipboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/clipboard.cpp') diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index 734640584..3cc8ac098 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -708,7 +708,7 @@ void ClipboardManagerImpl::_copySelection(ObjectSet *selection) // (we're dealing with unattached representations, so we write to their attributes // instead of using sp_item_set_transform) SPUse *use=dynamic_cast(item); - if( use && selection->includes(use->get_original()) ){//we are copying something whose parent is also copied (!) + if( use && use->get_original() && use->get_original()->parent ){//we are copying something whose parent is also copied (!) transform = ((SPItem*)(use->get_original()->parent))->i2doc_affine().inverse() * transform; } gchar *transform_str = sp_svg_transform_write(transform ); -- cgit v1.2.3