X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/085ad68651cd624a11331f5ab2cb2720bd7162aa..17b439e88a4ae9f82003ac8b4e2b5fb92444a3de:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 1d70eebd62..91bdb40bc8 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -364,6 +364,8 @@ void wxWindowBase::Centre(int direction) } } + // there is no wxTopLevelWindow under wxMotif yet +#ifndef __WXMOTIF__ // we shouldn't center the dialog on the iconized window: under // Windows, for example, this places it completely off the screen if ( parent ) @@ -374,6 +376,7 @@ void wxWindowBase::Centre(int direction) parent = NULL; } } +#endif // __WXMOTIF__ // did we find the parent? if ( !parent )