X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2794afdbb17b46a677e28e73ac5e50a82e13399..10793ebfbb49d48e6a97f8e2d02081f458bd80b4:/src/generic/toolbkg.cpp diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 4c25444a00..f5720f5ab8 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -18,12 +18,15 @@ #if wxUSE_TOOLBOOK +#ifndef WX_PRECOMP + #include "wx/icon.h" + #include "wx/settings.h" + #include "wx/toolbar.h" +#endif + #include "wx/imaglist.h" -#include "wx/icon.h" -#include "wx/toolbar.h" -#include "wx/toolbook.h" -#include "wx/settings.h" #include "wx/sysopt.h" +#include "wx/toolbook.h" // ---------------------------------------------------------------------------- // various wxWidgets macros @@ -395,7 +398,9 @@ void wxToolbook::OnToolSelected(wxCommandEvent& event) // change wasn't allowed, return to previous state if (m_selection != selNew) + { GetToolBar()->ToggleTool(m_selection, false); + } } #endif // wxUSE_TOOLBOOK