summaryrefslogtreecommitdiffstats
path: root/src/sp-namedview.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-10-28 03:34:17 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-10-28 03:34:17 +0000
commitdd99faf81e392ab6b3f9bccc1d08a69dbc7e1e64 (patch)
tree36fae623070555cf8dec14a82a3d8e6386bc48ad /src/sp-namedview.cpp
parentFix for 1067808 : Focus issues with new gradient (and swatch) manager in Fill... (diff)
downloadinkscape-dd99faf81e392ab6b3f9bccc1d08a69dbc7e1e64.tar.gz
inkscape-dd99faf81e392ab6b3f9bccc1d08a69dbc7e1e64.zip
Fix for 928205 : Do not save viewport metadata option
(bzr r11843)
Diffstat (limited to 'src/sp-namedview.cpp')
-rw-r--r--src/sp-namedview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 9d5821897..2f158df9d 100644
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -790,7 +790,7 @@ void sp_namedview_window_from_document(SPDesktop *desktop)
{
SPNamedView *nv = desktop->namedview;
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- bool geometry_from_file = prefs->getBool("/options/savewindowgeometry/value");
+ bool geometry_from_file = (1 == prefs->getInt("/options/savewindowgeometry/value", 0));
bool show_dialogs = TRUE;
// restore window size and position stored with the document
@@ -888,7 +888,7 @@ void sp_namedview_update_layers_from_document (SPDesktop *desktop)
void sp_namedview_document_from_window(SPDesktop *desktop)
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- bool save_geometry_in_file = prefs->getBool("/options/savewindowgeometry/value", 0);
+ bool save_geometry_in_file = (1 == prefs->getInt("/options/savewindowgeometry/value", 0));
bool save_viewport_in_file = prefs->getBool("/options/savedocviewport/value", true);
Inkscape::XML::Node *view = desktop->namedview->getRepr();
Geom::Rect const r = desktop->get_display_area();