From: johanengelen Date: Sun, 16 Dec 2007 18:12:32 +0000 (+0000) Subject: prevent writing to xml when initializing grid. fixes not working default units. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a73302a9125e9fe34694c6a1cce2e56686b5a0b1;p=inkscape.git prevent writing to xml when initializing grid. fixes not working default units. --- diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp index febab42e4..7fdc24192 100644 --- a/src/display/canvas-axonomgrid.cpp +++ b/src/display/canvas-axonomgrid.cpp @@ -218,6 +218,7 @@ CanvasAxonomGrid::CanvasAxonomGrid (SPNamedView * nv, Inkscape::XML::Node * in_r table.set_spacings(2); vbox.pack_start(table, false, false, 0); +_wr.setUpdating (true); Inkscape::UI::Widget::ScalarUnit * sutemp; _rumg.init (_("Grid _units:"), "units", _wr, repr, doc); _rsu_ox.init (_("_Origin X:"), _("X coordinate of grid origin"), @@ -245,6 +246,7 @@ CanvasAxonomGrid::CanvasAxonomGrid (SPNamedView * nv, Inkscape::XML::Node * in_r _("Color of the major (highlighted) grid lines"), "empcolor", "empopacity", _wr, repr, doc); _rsi.init (_("_Major grid line every:"), _("lines"), "empspacing", _wr, repr, doc); +_wr.setUpdating (false); Gtk::Widget const *const widget_array[] = { 0, _rcbgrid._button, diff --git a/src/display/canvas-grid.cpp b/src/display/canvas-grid.cpp index 7d9d009f0..ce30960fb 100644 --- a/src/display/canvas-grid.cpp +++ b/src/display/canvas-grid.cpp @@ -408,6 +408,7 @@ CanvasXYGrid::CanvasXYGrid (SPNamedView * nv, Inkscape::XML::Node * in_repr, SPD table.set_spacings(2); vbox.pack_start(table, false, false, 0); +_wr.setUpdating (true); Inkscape::UI::Widget::ScalarUnit * sutemp; _rumg.init (_("Grid _units:"), "units", _wr, repr, doc); _rsu_ox.init (_("_Origin X:"), _("X coordinate of grid origin"), @@ -439,6 +440,7 @@ CanvasXYGrid::CanvasXYGrid (SPNamedView * nv, Inkscape::XML::Node * in_repr, SPD _rcb_dotted.init ( _("_Show dots instead of lines"), _("If set, displays dots at gridpoints instead of gridlines"), "dotted", _wr, false, repr, doc); +_wr.setUpdating (false); Gtk::Widget const *const widget_array[] = { _rumg._label, _rumg._sel,