Code

Leave uninitialized bools in preferences to the default 'false' value. Code should...
authorJon A. Cruz <jon@joncruz.org>
Mon, 12 Apr 2010 09:10:41 +0000 (02:10 -0700)
committerJon A. Cruz <jon@joncruz.org>
Mon, 12 Apr 2010 09:10:41 +0000 (02:10 -0700)
src/widgets/toolbox.cpp

index bf12310923d010de43c89f1108b6c1b45dcee2b8..0b690504fe8360a27f8aa849a56bf521919be015 100644 (file)
@@ -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);