summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-04-12 09:10:41 +0000
committerJon A. Cruz <jon@joncruz.org>2010-04-12 09:10:41 +0000
commit1b36b306bc0068e94b300966a50060c07c4f428f (patch)
tree50be1a9c3a9602b8d7ca9d1f0ed2f7648359f2ff /src/widgets/toolbox.cpp
parentSimplifying sigc::bind use. Possible fix for mac compile. (diff)
downloadinkscape-1b36b306bc0068e94b300966a50060c07c4f428f.tar.gz
inkscape-1b36b306bc0068e94b300966a50060c07c4f428f.zip
Leave uninitialized bools in preferences to the default 'false' value. Code should initialize those explicitly and not count on GUI widgets to do so.
(bzr r9318)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index bf1231092..0b690504f 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -741,7 +741,7 @@ PrefPusher::PrefPusher( GtkToggleAction *act, Glib::ustring const &path, void (*
{
g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(toggleCB), this);
freeze = true;
- gtk_toggle_action_set_active( act, Inkscape::Preferences::get()->getBool(observed_path, true) );
+ gtk_toggle_action_set_active( act, Inkscape::Preferences::get()->getBool(observed_path) );
freeze = false;
Inkscape::Preferences::get()->addObserver(*this);