summaryrefslogtreecommitdiffstats
path: root/src/ui/clipboard.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2017-04-22 18:21:49 +0000
committerapenner <penner@vaxxine.com>2017-04-22 18:21:49 +0000
commit6b96232d171b4ba04567c096dbe9e65402eaa68f (patch)
treec29f62f233d044be5f0712ed2671d026c395824f /src/ui/clipboard.cpp
parentSimplify code and avoid conditional compilation by consistently using glib fu... (diff)
downloadinkscape-6b96232d171b4ba04567c096dbe9e65402eaa68f.tar.gz
inkscape-6b96232d171b4ba04567c096dbe9e65402eaa68f.zip
avoid double transform of <use> element during copy. (Bug 1679428)
Fixed bugs: - https://launchpad.net/bugs/1679428 (bzr r15631)
Diffstat (limited to 'src/ui/clipboard.cpp')
-rw-r--r--src/ui/clipboard.cpp2
1 files changed, 1 insertions, 1 deletions
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<SPUse *>(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 );