summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-12-28 08:50:50 +0000
committertavmjong-free <tavmjong@free.fr>2015-12-28 08:50:50 +0000
commitc5ee3ce4be0f65a00b5908a9051cdb470d805192 (patch)
tree2665a6aa72fae2fad897dbf88bc1156200b6fb36 /src
parentFix GTK+ fullscreen issue (diff)
downloadinkscape-c5ee3ce4be0f65a00b5908a9051cdb470d805192.tar.gz
inkscape-c5ee3ce4be0f65a00b5908a9051cdb470d805192.zip
Corrects attribute name for saving page 'checkerboard' background state.
Fixed bugs: - https://launchpad.net/bugs/1529391 (bzr r14556)
Diffstat (limited to 'src')
-rw-r--r--src/attributes.cpp2
-rw-r--r--src/sp-namedview.cpp2
-rw-r--r--src/ui/dialog/document-properties.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/attributes.cpp b/src/attributes.cpp
index dcd644b5d..e32f4ece4 100644
--- a/src/attributes.cpp
+++ b/src/attributes.cpp
@@ -82,7 +82,7 @@ static SPStyleProp const props[] = {
{SP_ATTR_FIT_MARGIN_LEFT, "fit-margin-left"},
{SP_ATTR_FIT_MARGIN_RIGHT, "fit-margin-right"},
{SP_ATTR_FIT_MARGIN_BOTTOM, "fit-margin-bottom"},
- {SP_ATTR_INKSCAPE_PAGECHECKERBOARD, "inkscape:checkerboard"},
+ {SP_ATTR_INKSCAPE_PAGECHECKERBOARD, "inkscape:pagecheckerboard"},
{SP_ATTR_INKSCAPE_PAGEOPACITY, "inkscape:pageopacity"},
{SP_ATTR_INKSCAPE_PAGESHADOW, "inkscape:pageshadow"},
{SP_ATTR_INKSCAPE_ZOOM, "inkscape:zoom"},
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 0942081ca..9598a14ec 100644
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -393,7 +393,7 @@ void SPNamedView::set(unsigned int key, const gchar* value) {
this->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
case SP_ATTR_INKSCAPE_PAGECHECKERBOARD:
- this->pagecheckerboard = (value) ? sp_str_to_bool (value) : TRUE;
+ this->pagecheckerboard = (value) ? sp_str_to_bool (value) : false;
this->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
case SP_ATTR_INKSCAPE_PAGEOPACITY:
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp
index 030bbbf7b..7cd48e62e 100644
--- a/src/ui/dialog/document-properties.cpp
+++ b/src/ui/dialog/document-properties.cpp
@@ -116,11 +116,11 @@ DocumentProperties::DocumentProperties()
_page_metadata2(Gtk::manage(new UI::Widget::NotebookPage(1, 1))),
//---------------------------------------------------------------
_rcb_antialias(_("Use antialiasing"), _("If unset, no antialiasing will be done on the drawing"), "shape-rendering", _wr, false, NULL, NULL, NULL, "crispEdges"),
- _rcb_checkerboard(_("Checkerboard background"), _("If set, use checkerboard for background, otherwise use background color at full opacity."), "inkscape:checkerboard", _wr, false),
+ _rcb_checkerboard(_("Checkerboard background"), _("If set, use checkerboard for background, otherwise use background color at full opacity."), "inkscape:pagecheckerboard", _wr, false),
_rcb_canb(_("Show page _border"), _("If set, rectangular page border is shown"), "showborder", _wr, false),
_rcb_bord(_("Border on _top of drawing"), _("If set, border is always on top of the drawing"), "borderlayer", _wr, false),
_rcb_shad(_("_Show border shadow"), _("If set, page border shows a shadow on its right and lower side"), "inkscape:showpageshadow", _wr, false),
- _rcp_bg(_("Back_ground color:"), _("Background color"), _("Color of the page background. Note: transparency setting ignored while editing if 'Checkerboard background' set (but used when exporting to bitmap)."), "pagecolor", "inkscape:pageopacity", _wr),
+ _rcp_bg(_("Back_ground color:"), _("Background color"), _("Color of the page background. Note: transparency setting ignored while editing if 'Checkerboard background' unset (but used when exporting to bitmap)."), "pagecolor", "inkscape:pageopacity", _wr),
_rcp_bord(_("Border _color:"), _("Page border color"), _("Color of the page border"), "bordercolor", "borderopacity", _wr),
_rum_deflt(_("Display _units:"), "inkscape:document-units", _wr),
_page_sizer(_wr),