summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-03-09 14:49:33 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-03-09 14:49:33 +0000
commita5260f225beb034d155643376a6985ddb35817f9 (patch)
tree0c7157445252255d628e66c0c01fc7077d360da0 /src/desktop.cpp
parentskeletal-stroke: offset parameters are back again... optionaly proportional t... (diff)
downloadinkscape-a5260f225beb034d155643376a6985ddb35817f9.tar.gz
inkscape-a5260f225beb034d155643376a6985ddb35817f9.zip
Move 3D box code out of sp-canvas.cpp
(bzr r5008)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 3ff4bf2f5..f9d17b01a 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -88,6 +88,7 @@
#include "event-log.h"
#include "display/canvas-grid.h"
#include "widgets/desktop-widget.h"
+#include "box3d-context.h"
#include "display/sp-canvas.h"
@@ -741,6 +742,9 @@ SPDesktop::set_display_area (double x0, double y0, double x1, double y1, double
/* Scroll */
sp_canvas_scroll_to (canvas, x0 * newscale - border, y1 * -newscale - border, clear);
+ /* update perspective lines if we are in the 3D box tool (so that infinite ones are shown correctly) */
+ sp_box3d_context_update_lines(event_context);
+
_widget->updateRulers();
_widget->updateScrollbars(expansion(_d2w));
_widget->updateZoom();
@@ -979,6 +983,9 @@ SPDesktop::scroll_world (double dx, double dy, bool is_scrolling)
sp_canvas_scroll_to(canvas, viewbox.min()[NR::X] - dx, viewbox.min()[NR::Y] - dy, FALSE, is_scrolling);
+ /* update perspective lines if we are in the 3D box tool (so that infinite ones are shown correctly) */
+ sp_box3d_context_update_lines(event_context);
+
_widget->updateRulers();
_widget->updateScrollbars(expansion(_d2w));
}