summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-02-25 05:46:48 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-02-25 05:46:48 +0000
commit2a33ed0b021d89f29f429ae0746e42679af82155 (patch)
tree388f55ec2cdb0b10ef26fef65f54bf49b90dda93 /src/desktop.cpp
parentadd 'hide all except selected' checkbox (diff)
downloadinkscape-2a33ed0b021d89f29f429ae0746e42679af82155.tar.gz
inkscape-2a33ed0b021d89f29f429ae0746e42679af82155.zip
move a global to a class property; reduce the use of is_scrolling to prevent the lack-of-redraw issues
(bzr r2430)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 5590633b8..e1cc23083 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -897,13 +897,13 @@ SPDesktop::zoom_drawing()
* Scroll canvas by specific coordinate amount.
*/
void
-SPDesktop::scroll_world (double dx, double dy)
+SPDesktop::scroll_world (double dx, double dy, bool is_scrolling)
{
g_assert(_widget);
NR::Rect const viewbox = canvas->getViewbox();
- sp_canvas_scroll_to(canvas, viewbox.min()[NR::X] - dx, viewbox.min()[NR::Y] - dy, FALSE);
+ sp_canvas_scroll_to(canvas, viewbox.min()[NR::X] - dx, viewbox.min()[NR::Y] - dy, FALSE, is_scrolling);
_widget->updateRulers();
_widget->updateScrollbars(expansion(_d2w));