summaryrefslogtreecommitdiffstats
path: root/src/display/canvas-grid.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-02-12 20:10:21 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-02-12 20:10:21 +0000
commita54004e6e5570ff405aeadceac714dc5228c57a2 (patch)
tree2d8133e2f3d4c8a3829afedf243f8f3a70f26592 /src/display/canvas-grid.cpp
parentadded Shift+G to default.xml, sorted order of appearance (diff)
downloadinkscape-a54004e6e5570ff405aeadceac714dc5228c57a2.tar.gz
inkscape-a54004e6e5570ff405aeadceac714dc5228c57a2.zip
Fix initialization of grids. Should finally fix Bug #172778
(bzr r4716)
Diffstat (limited to 'src/display/canvas-grid.cpp')
-rw-r--r--src/display/canvas-grid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/canvas-grid.cpp b/src/display/canvas-grid.cpp
index d31eb15c4..245c78eca 100644
--- a/src/display/canvas-grid.cpp
+++ b/src/display/canvas-grid.cpp
@@ -428,6 +428,8 @@ CanvasXYGrid::CanvasXYGrid (SPNamedView * nv, Inkscape::XML::Node * in_repr, SPD
render_dotted = prefs_get_int_attribute ("options.grids.xy", "dotted", 0) == 1;
snapper = new CanvasXYGridSnapper(this, namedview, 0);
+
+ if (repr) readRepr();
}
CanvasXYGrid::~CanvasXYGrid ()
@@ -720,8 +722,6 @@ _wr.setUpdating (false);
attach_all (*table, widget_array, sizeof(widget_array));
- if (repr) readRepr();
-
// set widget values
_rumg->setUnit (gridunit);