summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d487de5)
raw | patch | inline | side by side (parent: d487de5)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 29 Nov 2008 05:32:03 +0000 (05:32 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 29 Nov 2008 05:32:03 +0000 (05:32 +0000) |
src/ui/clipboard.cpp | patch | blob | history |
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 0dc4a1d5bc0a72feb8f841aa592278e8717d8846..bd3edadda28ab8487585e0c042015b0794d44a87 100644 (file)
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
// 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