From: Johan Date: Sun, 14 Feb 2010 22:26:06 +0000 (+0100) Subject: fix bug: when creating an xy-grid, respect the default unit setting. (the preferences... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88e069b10554b7f4c0675de95efb07ce089a4c2c;p=inkscape.git fix bug: when creating an xy-grid, respect the default unit setting. (the preferences setting was writing to the wrong place in the pref file) --- diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 821a7c095..82bca9da0 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -1020,7 +1020,7 @@ void InkscapePreferences::initPageGrids() _page_grids.add_line( false, "", _grids_notebook, "", "", false); _grids_notebook.append_page(_grids_xy, CanvasGrid::getName( GRID_RECTANGULAR )); _grids_notebook.append_page(_grids_axonom, CanvasGrid::getName( GRID_AXONOMETRIC )); - _grids_xy_units.init("/options/grids/units"); + _grids_xy_units.init("/options/grids/xy/units"); _grids_xy.add_line( false, _("Grid units:"), _grids_xy_units, "", "", false); _grids_xy_origin_x.init("/options/grids/xy/origin_x", -10000.0, 10000.0, 0.1, 1.0, 0.0, false, false); _grids_xy_origin_y.init("/options/grids/xy/origin_y", -10000.0, 10000.0, 0.1, 1.0, 0.0, false, false);