From 8d3072a6df73b476e63d0322ea62f19aaf93390a Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 26 Oct 2006 21:12:38 +0000 Subject: [PATCH] Bug fix in set_gridtype --- src/sp-namedview.cpp | 4 ++-- src/sp-namedview.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp index da95a8ab7..6ab3c5235 100644 --- a/src/sp-namedview.cpp +++ b/src/sp-namedview.cpp @@ -823,12 +823,12 @@ void sp_namedview_toggle_grid(SPDocument *doc, Inkscape::XML::Node *repr) sp_document_set_undo_sensitive(doc, saved); } -void sp_namedview_set_gridtype(bool type, SPDocument *doc, Inkscape::XML::Node *repr) +void sp_namedview_set_gridtype(unsigned int type, SPDocument *doc, Inkscape::XML::Node *repr) { bool saved = sp_document_get_undo_sensitive(doc); sp_document_set_undo_sensitive(doc, false); - sp_repr_set_boolean(repr, "showgrid", type); + sp_repr_set_int(repr, "gridtype", (gint)type); doc->rroot->setAttribute("sodipodi:modified", "true"); sp_document_set_undo_sensitive(doc, saved); diff --git a/src/sp-namedview.h b/src/sp-namedview.h index 6625fd027..e16f7a0be 100644 --- a/src/sp-namedview.h +++ b/src/sp-namedview.h @@ -109,7 +109,7 @@ void sp_namedview_document_from_window(SPDesktop *desktop); void sp_namedview_toggle_guides(SPDocument *doc, Inkscape::XML::Node *repr); void sp_namedview_toggle_grid(SPDocument *doc, Inkscape::XML::Node *repr); -void sp_namedview_set_gridtype(bool type, SPDocument *doc, Inkscape::XML::Node *repr); +void sp_namedview_set_gridtype(unsigned int type, SPDocument *doc, Inkscape::XML::Node *repr); #endif /* !INKSCAPE_SP_NAMEDVIEW_H */ -- 2.30.2