]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Compilation fix for dos
[wxWidgets.git] / src / msw / notebook.cpp
index 669d99dadec3c0d321bd1aa2f0d9e89ee3b57c82..925dee0c9ad3259c508968efbec1bbb25cd2bb36 100644 (file)
@@ -964,8 +964,9 @@ void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
         //
         wxWindow * const parent = GetParent();
 
-        const bool isFromParent = event.GetEventObject() == parent;
-        const bool isFromSelf = event.GetEventObject() == this;
+        // the wxObject* casts are required to avoid MinGW GCC 2.95.3 ICE
+        const bool isFromParent = event.GetEventObject() == (wxObject*) parent;
+        const bool isFromSelf = event.GetEventObject() == (wxObject*) this;
 
         if ( isFromParent || isFromSelf )
         {