diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2018-12-06 10:49:22 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2018-12-06 10:49:22 +0000 |
| commit | 1397249083a150de8f095d2d919b7c7fad649f6e (patch) | |
| tree | 9873679bafbe2aa1d0a346806e361eb48ec02355 /src/display/sp-canvas.cpp | |
| parent | desktop-widget: make canvas_tbl private (diff) | |
| download | inkscape-1397249083a150de8f095d2d919b7c7fad649f6e.tar.gz inkscape-1397249083a150de8f095d2d919b7c7fad649f6e.zip | |
desktop-widget: make rulers private
Diffstat (limited to 'src/display/sp-canvas.cpp')
| -rw-r--r-- | src/display/sp-canvas.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index 5c2a6d014..bd4f66449 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -41,6 +41,7 @@ #include "preferences.h" #include "sodipodi-ctrlrect.h" #include "ui/tools/tool-base.h" +#include "widgets/desktop-widget.h" #include <2geom/affine.h> #include <2geom/rect.h> @@ -2389,8 +2390,10 @@ int SPCanvas::paint() arena = SP_CANVAS_ARENA(desktop->drawing); split_x = !_split_vertical ? 0 : _split_value; split_y = _split_vertical ? 0 : _split_value; - guint hruler_gap = desktop->get_hruler_thickness(); - guint vruler_gap = desktop->get_vruler_thickness(); + auto window = desktop->getToplevel(); + auto dtw = static_cast<SPDesktopWidget *>(window->get_data("desktopwidget")); + guint hruler_gap = dtw->get_hruler_thickness(); + guint vruler_gap = dtw->get_vruler_thickness(); Geom::IntCoord coord1x = allocation.x + (int(allocation.width * split_x)) - (3 * canvas->_device_scale) - vruler_gap; Geom::IntCoord coord1y = |
