From 0e2fdf7e8a59208d3573fc73730c1203cde37997 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Mon, 12 Apr 2010 02:10:41 -0700 Subject: [PATCH] Leave uninitialized bools in preferences to the default 'false' value. Code should initialize those explicitly and not count on GUI widgets to do so. --- src/widgets/toolbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2