From 9bada9c946a07d59fac5e30fb184b40304352171 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 4 Aug 2009 18:19:40 +0000 Subject: [PATCH] Fix uninitialised variable. git-svn-id: svn://localhost/ardour2/branches/3.0@5488 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mouse.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index aea06d6410..1a0cd75ba2 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -301,6 +301,9 @@ Editor::set_mouse_mode (MouseMode m, bool force) Glib::RefPtr tact = Glib::RefPtr::cast_dynamic (act); assert (tact); + + /* go there and back to ensure that the toggled handler is called to set up mouse_mode */ + tact->set_active (false); tact->set_active (true); }