Code

comment
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 29 Nov 2008 05:32:03 +0000 (05:32 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 29 Nov 2008 05:32:03 +0000 (05:32 +0000)
src/ui/clipboard.cpp

index 0dc4a1d5bc0a72feb8f841aa592278e8717d8846..bd3edadda28ab8487585e0c042015b0794d44a87 100644 (file)
@@ -784,7 +784,7 @@ void ClipboardManagerImpl::_pasteDocument(SPDocument *clipdoc, bool in_place)
     // Calculate the relative location of the mouse pointer
     Inkscape::Selection *selection = sp_desktop_selection(desktop);
     selection->setReprList(pasted_objects);         // Change the selection to the freshly pasted objects
-    sp_document_ensure_up_to_date(target_document); // What does this do?
+    sp_document_ensure_up_to_date(target_document); // Update (among other things) all curves in paths, for bounds() to work
     
     Geom::OptRect sel_bbox = selection->bounds(); //In desktop coordinates
     // PS: We could also have used the min/max corners calculated above, instead of selection->bounds() because