From c6e689c83f8d272cbe6c814cdea80476dd3a6db2 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Fri, 21 Dec 2007 22:06:49 +0000 Subject: [PATCH] fix bug where changing units changed angles of axonometric grid --- src/display/canvas-axonomgrid.cpp | 8 ++++---- src/display/canvas-axonomgrid.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp index 33592a3f8..bb9923680 100644 --- a/src/display/canvas-axonomgrid.cpp +++ b/src/display/canvas-axonomgrid.cpp @@ -239,9 +239,9 @@ _wr.setUpdating (true); sutemp->setDigits(4); sutemp->setIncrements(0.1, 1.0); _rsu_ax.init (_("Angle X:"), _("Angle of x-axis"), - "gridanglex", _rumg, _wr, repr, doc); + "gridanglex", _wr, repr, doc); _rsu_az.init (_("Angle Z:"), _("Angle of z-axis"), - "gridanglez", _rumg, _wr, repr, doc); + "gridanglez", _wr, repr, doc); _rcp_gcol.init (_("Grid line _color:"), _("Grid line color"), _("Color of grid lines"), "color", "opacity", _wr, repr, doc); _rcp_gmcol.init (_("Ma_jor grid line color:"), _("Major grid line color"), @@ -256,8 +256,8 @@ _wr.setUpdating (false); 0, _rsu_ox.getSU(), 0, _rsu_oy.getSU(), 0, _rsu_sy.getSU(), - 0, _rsu_ax.getSU(), - 0, _rsu_az.getSU(), + 0, _rsu_ax.getS(), + 0, _rsu_az.getS(), _rcp_gcol._label, _rcp_gcol._cp, 0, 0, _rcp_gmcol._label, _rcp_gmcol._cp, diff --git a/src/display/canvas-axonomgrid.h b/src/display/canvas-axonomgrid.h index 2eaec9d6f..a5bc33fa9 100644 --- a/src/display/canvas-axonomgrid.h +++ b/src/display/canvas-axonomgrid.h @@ -75,7 +75,8 @@ private: Inkscape::UI::Widget::RegisteredCheckButton _rcbgrid, _rcbsnbb, _rcbsnnod; Inkscape::UI::Widget::RegisteredUnitMenu _rumg, _rums; - Inkscape::UI::Widget::RegisteredScalarUnit _rsu_ox, _rsu_oy, _rsu_sy, _rsu_ax, _rsu_az; + Inkscape::UI::Widget::RegisteredScalarUnit _rsu_ox, _rsu_oy, _rsu_sy; + Inkscape::UI::Widget::RegisteredScalar _rsu_ax, _rsu_az; Inkscape::UI::Widget::RegisteredColorPicker _rcp_gcol, _rcp_gmcol; Inkscape::UI::Widget::RegisteredSuffixedInteger _rsi; }; -- 2.30.2