From e28b0102bd463b8a58ceae032c88096f3922966d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Jun 2002 15:14:26 +0000 Subject: [PATCH] wxMotif compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 ) -- 2.45.2