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/sp-namedview.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/sp-namedview.cpp')
| -rw-r--r-- | src/sp-namedview.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp index 3575ce6ae..3f52232cb 100644 --- a/src/sp-namedview.cpp +++ b/src/sp-namedview.cpp @@ -1063,6 +1063,23 @@ Inkscape::CanvasGrid * sp_namedview_get_first_enabled_grid(SPNamedView *namedvie return NULL; } +void SPNamedView::translateGuides(NR::translate const &tr) { + for (GSList *l = guides; l != NULL; l = l->next) { + SPGuide &guide = *SP_GUIDE(l->data); + Geom::Point point_on_line = guide.point_on_line; + point_on_line[0] += tr[0]; + point_on_line[1] += tr[1]; + sp_guide_moveto(guide, point_on_line, true); + } +} + +void SPNamedView::scrollAllDesktops(double dx, double dy, bool is_scrolling) { + for(GSList *l = views; l; l = l->next) { + SPDesktop *desktop = static_cast<SPDesktop *>(l->data); + desktop->scroll_world_in_svg_coords(dx, dy, is_scrolling); + } +} + /* Local Variables: |
