by explicitly calling OnInternalIdle if it's a message dialog
within an assertion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16259
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/font.h"
#include "wx/settings.h"
#include "wx/dialog.h"
+#include "wx/msgdlg.h"
#if wxUSE_WX_RESOURCES
#include "wx/resource.h"
// from some safely-looking functions
if ( wxTheApp->IsInAssert() )
{
+ // But repaint the assertion message if necessary
+ if (wxTopLevelWindows.GetCount() > 0)
+ {
+ wxWindow* win = (wxWindow*) wxTopLevelWindows.Last()->Data();
+ if (win->IsKindOf(CLASSINFO(wxGenericMessageDialog)))
+ win->OnInternalIdle();
+ }
return TRUE;
}
#endif // __WXDEBUG__
#include "wx/font.h"
#include "wx/settings.h"
#include "wx/dialog.h"
+#include "wx/msgdlg.h"
#if wxUSE_WX_RESOURCES
#include "wx/resource.h"
// from some safely-looking functions
if ( wxTheApp->IsInAssert() )
{
+ // But repaint the assertion message if necessary
+ if (wxTopLevelWindows.GetCount() > 0)
+ {
+ wxWindow* win = (wxWindow*) wxTopLevelWindows.Last()->Data();
+ if (win->IsKindOf(CLASSINFO(wxGenericMessageDialog)))
+ win->OnInternalIdle();
+ }
return TRUE;
}
#endif // __WXDEBUG__