diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-03-09 14:49:33 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-03-09 14:49:33 +0000 |
| commit | a5260f225beb034d155643376a6985ddb35817f9 (patch) | |
| tree | 0c7157445252255d628e66c0c01fc7077d360da0 /src/desktop.cpp | |
| parent | skeletal-stroke: offset parameters are back again... optionaly proportional t... (diff) | |
| download | inkscape-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.cpp | 7 |
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)); } |
