]> git.saurik.com Git - wxWidgets.git/commitdiff
release build unused variable warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jul 2006 22:13:07 +0000 (22:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jul 2006 22:13:07 +0000 (22:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 62995e54a8acd02bead9e767d983e7a8a0852f16..cecad5fa0d567634d9426531be425d7fe75d516f 100644 (file)
@@ -2399,10 +2399,10 @@ static void DoNotifyWindowAboutCaptureLost(wxWindow *win)
 {
     wxMouseCaptureLostEvent event(win->GetId());
     event.SetEventObject(win);
-    bool processed = win->GetEventHandler()->ProcessEvent(event);
-
-    wxASSERT_MSG( processed,
-                  _T("window that captured mouse didn't process wxEVT_MOUSE_CAPTURE_LOST") );
+    if ( !win->GetEventHandler()->ProcessEvent(event) )
+    {
+        wxFAIL_MSG( _T("window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST") );
+    }
 }
 
 /* static */