From e4043f6518d1bdb8d05e9781beddd7f44d6567e2 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Wed, 13 May 2015 00:47:45 -0500 Subject: [PATCH] Fix for bug #934 --- src/Menus.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index 2dc03f79c..133511062 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -3288,7 +3288,22 @@ void AudacityProject::OnManageEffects() //gPrefs->Write( wxT("/Plugins/Rescan"), true); //gPrefs->Read(wxT("/Plugins/CheckForUpdates"), &doCheck, true); PluginManager::Get().CheckForUpdates(kPROMPT_TO_ADD_EFFECTS); - RebuildMenuBar(); + + for (size_t i = 0; i < gAudacityProjects.GetCount(); i++) { + AudacityProject *p = gAudacityProjects[i]; + + p->RebuildMenuBar(); +#if defined(__WXGTK__) + // Workaround for: + // + // http://bugzilla.audacityteam.org/show_bug.cgi?id=458 + // + // This workaround should be removed when Audacity updates to wxWidgets 3.x which has a fix. + wxRect r = p->GetRect(); + p->SetSize(wxSize(1,1)); + p->SetSize(r.GetSize()); +#endif + } } void AudacityProject::OnStereoToMono(int WXUNUSED(index))