]> git.saurik.com Git - wxWidgets.git/commitdiff
added appropriate WX_PRECOMP bracket for new include statement
authorDavid Surovell <davids@osafoundation.org>
Sat, 4 Feb 2006 18:49:39 +0000 (18:49 +0000)
committerDavid Surovell <davids@osafoundation.org>
Sat, 4 Feb 2006 18:49:39 +0000 (18:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/toolbkg.cpp

index 4c25444a00de6c0aa064ee8191e4506d36ea6802..9517fec6924e571aecd70380f8c8c6d5e1383af6 100644 (file)
 #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