X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f516d986371b7643efda569d64ae19e75d221411..f5058cd7d926d45a6b0673a0b557ca0792f60e48:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index e553ef1ef2..f3b68b1d3f 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -26,21 +26,24 @@ #define XtScreen XTSCREEN #endif +#ifndef WX_PRECOMP + #include "wx/hash.h" + #include "wx/log.h" + #include "wx/app.h" + #include "wx/utils.h" + #include "wx/frame.h" + #include "wx/dc.h" + #include "wx/dcclient.h" +#endif + #include "wx/menu.h" -#include "wx/dc.h" -#include "wx/dcclient.h" -#include "wx/utils.h" -#include "wx/app.h" #include "wx/layout.h" #include "wx/button.h" #include "wx/settings.h" -#include "wx/frame.h" #include "wx/scrolwin.h" #include "wx/module.h" #include "wx/menuitem.h" -#include "wx/log.h" #include "wx/evtloop.h" -#include "wx/hash.h" #if wxUSE_DRAG_AND_DROP #include "wx/dnd.h" @@ -1247,6 +1250,7 @@ void wxWindow::DoSetSizeIntr(int x, int y, int width, int height, { // A bit of optimization to help sort out the flickers. int oldX = -1, oldY = -1, oldW = -1, oldH = -1; + if( !fromCtor ) { GetSize(& oldW, & oldH);