diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2009-05-11 17:35:19 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2009-05-11 17:35:19 +0000 |
| commit | b73014debefe2255afac9093bc9e6a7cdfe2f649 (patch) | |
| tree | 7e92f75a8dd11178c97417b6f3800050e98a7b30 /src/ui/clipboard.cpp | |
| parent | Renaming Alpha engraving to Alpha draw and Alpha engraving, color to Alpha fi... (diff) | |
| download | inkscape-b73014debefe2255afac9093bc9e6a7cdfe2f649.tar.gz inkscape-b73014debefe2255afac9093bc9e6a7cdfe2f649.zip | |
call sp_document_ensure_up_to_date for getCenter/setCenter (Bug #374968)
(bzr r7860)
Diffstat (limited to 'src/ui/clipboard.cpp')
| -rw-r--r-- | src/ui/clipboard.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index f56932487..2ee62cfec 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -799,14 +799,11 @@ void ClipboardManagerImpl::_pasteDocument(SPDocument *clipdoc, bool in_place) // invers apply parent transform Geom::Matrix doc2parent = sp_item_i2doc_affine(SP_ITEM(desktop->currentLayer())).inverse(); + sp_selection_apply_affine(selection, doc2parent); // Update (among other things) all curves in paths, for bounds() to work sp_document_ensure_up_to_date(target_document); - // Don't exactly know what sp_document_ensure_up_to_date() does, but apparently it must be called before - // item->getCenter() is used in sp_selection_apply_affine(). If not, then the center will be at (0,0) - sp_selection_apply_affine(selection, doc2parent); - // move selection either to original position (in_place) or to mouse pointer Geom::OptRect sel_bbox = selection->bounds(); if (sel_bbox) { |
