summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorStephen Silver <sasilver@yahoo.com>2008-05-31 15:16:57 +0000
committersasilver <sasilver@users.sourceforge.net>2008-05-31 15:16:57 +0000
commitf709f7f377a37c2bec986965d5b0709675ef4538 (patch)
tree9f6461a79cfea499b1fd58e6b51c4930125dcae5 /src/desktop.cpp
parentCmake: added windows path to find modules. (diff)
downloadinkscape-f709f7f377a37c2bec986965d5b0709675ef4538.tar.gz
inkscape-f709f7f377a37c2bec986965d5b0709675ef4538.zip
wrtlprnft's patch for bug 234834 - keeps guidelines in same position relative to objects when doing "Fit page to selection", and also keeps the objects in the same position on the screen
(bzr r5771)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index eee0446db..5796ed638 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -976,6 +976,16 @@ SPDesktop::zoom_drawing()
}
/**
+ * Scroll canvas by specific coordinate amount in svg coordinates.
+ */
+void
+SPDesktop::scroll_world_in_svg_coords (double dx, double dy, bool is_scrolling)
+{
+ double scale = expansion(_d2w);
+ scroll_world(dx*scale, dy*scale, is_scrolling);
+}
+
+/**
* Scroll canvas by specific coordinate amount.
*/
void