]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
don't draw resize sash if it's dragged outside of managed frame
[wxWidgets.git] / include / wx / debug.h
index 29d4deac3b6cfb3f53a451f41953f9c451e2cca4..593af341d7503b5b5b343633ed2312c273dec35b 100644 (file)
@@ -259,7 +259,10 @@ extern void WXDLLIMPEXP_BASE wxOnAssert(const char *file,
     // wxFAIL is a special form of assert: it always triggers (and so is
     // usually used in normally unreachable code)
     #define wxFAIL_COND_MSG(cond, msg) \
-        wxOnAssert(__FILE__, __LINE__,  __WXFUNCTION__, cond, msg)
+        if ( !wxTheAssertHandler )                                            \
+        {}                                                                    \
+        else                                                                  \
+            wxOnAssert(__FILE__, __LINE__,  __WXFUNCTION__, cond, msg)
     #define wxFAIL_MSG(msg) wxFAIL_COND_MSG("Assert failure", msg)
     #define wxFAIL wxFAIL_MSG((const char*)NULL)
 #else // !wxDEBUG_LEVEL