X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/521bf4ff3ef47059265beff5d53c9e1162beb122..cf6f325cd37652ca534329e4e8f8468e87836769:/src/x11/window.cpp diff --git a/src/x11/window.cpp b/src/x11/window.cpp index c2021f0162..5497980639 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -13,7 +13,7 @@ #include "wx/wxprec.h" #if defined(__BORLANDC__) -#pragma hdrstop + #pragma hdrstop #endif // ============================================================================ @@ -24,27 +24,32 @@ // headers // ---------------------------------------------------------------------------- -#include "wx/menu.h" -#include "wx/dc.h" -#include "wx/dcclient.h" -#include "wx/utils.h" -#include "wx/app.h" -#include "wx/panel.h" +#include "wx/window.h" + +#ifndef WX_PRECOMP + #include "wx/hash.h" + #include "wx/log.h" + #include "wx/app.h" + #include "wx/utils.h" + #include "wx/panel.h" + #include "wx/frame.h" + #include "wx/dc.h" + #include "wx/dcclient.h" + #include "wx/button.h" + #include "wx/menu.h" +#endif + #include "wx/layout.h" #include "wx/dialog.h" #include "wx/listbox.h" -#include "wx/button.h" #include "wx/settings.h" #include "wx/msgdlg.h" -#include "wx/frame.h" #include "wx/scrolwin.h" #include "wx/scrolbar.h" #include "wx/module.h" #include "wx/menuitem.h" -#include "wx/log.h" #include "wx/fontutil.h" #include "wx/univ/renderer.h" -#include "wx/hash.h" #if wxUSE_DRAG_AND_DROP #include "wx/dnd.h" @@ -479,7 +484,7 @@ void wxWindowX11::DoCaptureMouse() { if ((g_captureWindow != NULL) && (g_captureWindow != this)) { - wxASSERT_MSG(false, wxT("Trying to capture before mouse released.")); + wxFAIL_MSG(wxT("Trying to capture before mouse released.")); // Core dump now int *tmp = NULL;