From 8ef877aabedde95b69ceb9200ce37d499575c502 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 21 May 2007 18:34:49 +0000 Subject: [PATCH] avoid assertions in case the toplevel window is not really created by wx (native filedialogs) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index d091cb7b86..f1eeaf5f7d 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -1531,6 +1531,12 @@ void wxTopLevelWindowMac::DoGetClientSize( int *width, int *height ) const *height = bounds.bottom - bounds.top ; } +void wxTopLevelWindowMac::DoCentre(int dir) +{ + if ( m_macWindow != 0 ) + wxTopLevelWindowBase::DoCentre(dir); +} + void wxTopLevelWindowMac::MacSetMetalAppearance( bool set ) { #if TARGET_API_MAC_OSX