Code

fix bug: when creating an xy-grid, respect the default unit setting. (the preferences...
authorJohan <Johan@JohannesMobile>
Sun, 14 Feb 2010 22:26:06 +0000 (23:26 +0100)
committerJohan <Johan@JohannesMobile>
Sun, 14 Feb 2010 22:26:06 +0000 (23:26 +0100)
src/ui/dialog/inkscape-preferences.cpp

index 821a7c095bd1b23430f7f2340a53f043bd800369..82bca9da0dcecb064841f5bbcaff8398d915fe6e 100644 (file)
@@ -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);