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
This commit is contained in:
Stefan Csomor
2007-05-21 18:34:49 +00:00
parent f919acdc41
commit 8ef877aabe

View File

@@ -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