From 28bfd0a1d2ca3048070e2f7100b5d025b421a113 Mon Sep 17 00:00:00 2001 From: David Surovell Date: Sat, 4 Feb 2006 18:49:39 +0000 Subject: [PATCH] added appropriate WX_PRECOMP bracket for new include statement git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/toolbkg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 4c25444a00..9517fec692 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -19,12 +19,15 @@ #if wxUSE_TOOLBOOK #include "wx/imaglist.h" -#include "wx/icon.h" #include "wx/toolbar.h" #include "wx/toolbook.h" #include "wx/settings.h" #include "wx/sysopt.h" +#ifndef WX_PRECOMP + #include "wx/icon.h" +#endif + // ---------------------------------------------------------------------------- // 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 -- 2.45.2