From: Jon A. Cruz Date: Mon, 12 Apr 2010 09:10:41 +0000 (-0700) Subject: Leave uninitialized bools in preferences to the default 'false' value. Code should... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e2fdf7e8a59208d3573fc73730c1203cde37997;p=inkscape.git Leave uninitialized bools in preferences to the default 'false' value. Code should initialize those explicitly and not count on GUI widgets to do so. --- 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);