From 060a6ac2802d7b67f9e58c20cbdedc2326738e3b Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 17 Apr 2007 18:03:58 +0000 Subject: [PATCH] old default color values restored --- src/display/canvas-grid.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/display/canvas-grid.cpp b/src/display/canvas-grid.cpp index 7db2d4020..25700b2a6 100644 --- a/src/display/canvas-grid.cpp +++ b/src/display/canvas-grid.cpp @@ -28,6 +28,10 @@ namespace Inkscape { +#define DEFAULTGRIDCOLOR 0x0000FF20 +#define DEFAULTGRIDEMPCOLOR 0x0000FF40 + + static void grid_canvasitem_class_init (GridCanvasItemClass *klass); static void grid_canvasitem_init (GridCanvasItem *grid); static void grid_canvasitem_destroy (GtkObject *object); @@ -339,11 +343,8 @@ CanvasXYGrid::CanvasXYGrid (SPNamedView * nv, Inkscape::XML::Node * in_repr) : CanvasGrid(nv, in_repr), table(1, 1) { origin[NR::X] = origin[NR::Y] = 0.0; -// nv->gridcolor = (nv->gridcolor & 0xff) | (DEFAULTGRIDCOLOR & 0xffffff00); -// case SP_ATTR_GRIDOPACITY: -// nv->gridcolor = (nv->gridcolor & 0xffffff00) | (DEFAULTGRIDCOLOR & 0xff); - color = 0xff3f3f20; - empcolor = 0xFF3F3F40; + color = DEFAULTGRIDCOLOR; + empcolor = DEFAULTGRIDEMPCOLOR; empspacing = 5; spacing[NR::X] = spacing[NR::Y] = 8.0; gridunit = &sp_unit_get_by_id(SP_UNIT_PX); @@ -551,7 +552,6 @@ CanvasXYGrid::updateWidgets() _wr.setUpdating (true); -// _rrb_gridtype.setValue (nv->gridtype); _rumg.setUnit (gridunit); gdouble val; -- 2.30.2