diff options
| author | Stephen Silver <sasilver@yahoo.com> | 2008-05-31 15:16:57 +0000 |
|---|---|---|
| committer | sasilver <sasilver@users.sourceforge.net> | 2008-05-31 15:16:57 +0000 |
| commit | f709f7f377a37c2bec986965d5b0709675ef4538 (patch) | |
| tree | 9f6461a79cfea499b1fd58e6b51c4930125dcae5 /src/desktop.cpp | |
| parent | Cmake: added windows path to find modules. (diff) | |
| download | inkscape-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.cpp | 10 |
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 |
