Code

Fix for show/hide.
authorJon A. Cruz <jon@joncruz.org>
Thu, 17 Jun 2010 05:58:19 +0000 (22:58 -0700)
committerJon A. Cruz <jon@joncruz.org>
Thu, 17 Jun 2010 05:58:19 +0000 (22:58 -0700)
src/interface.cpp

index 9e0866bc15711780e4749585127465822000b3e0..47563238a50dde69c30937847ec8dd22cb252c67 100644 (file)
@@ -678,10 +678,9 @@ checkitem_update(GtkWidget *widget, GdkEventExpose */*event*/, gpointer user_dat
     Glib::ustring pref_path = getLayoutPrefPath( view );
     pref_path += pref;
     pref_path += "/state";
-    pref_path += pref;
 
     Inkscape::Preferences *prefs = Inkscape::Preferences::get();
-    bool ison = prefs->getBool(pref_path + "/state", true);
+    bool ison = prefs->getBool(pref_path, true);
 
     g_signal_handlers_block_by_func(G_OBJECT(menuitem), (gpointer)(GCallback)checkitem_toggled, user_data);
     gtk_check_menu_item_set_active(menuitem, ison);