add implementation fallback for not yet instantiated control peers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1825,8 +1825,9 @@ bool wxWindowMac::MacIsReallyShown()
|
|||||||
{
|
{
|
||||||
// only under OSX the visibility of the TLW is taken into account
|
// only under OSX the visibility of the TLW is taken into account
|
||||||
#if TARGET_API_MAC_OSX
|
#if TARGET_API_MAC_OSX
|
||||||
return m_peer->IsVisible();
|
if ( m_peer && m_peer->Ok() )
|
||||||
#else
|
return m_peer->IsVisible();
|
||||||
|
#endif
|
||||||
wxWindow* win = this ;
|
wxWindow* win = this ;
|
||||||
while( win->IsShown() )
|
while( win->IsShown() )
|
||||||
{
|
{
|
||||||
@@ -1839,7 +1840,6 @@ bool wxWindowMac::MacIsReallyShown()
|
|||||||
|
|
||||||
} ;
|
} ;
|
||||||
return false ;
|
return false ;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowMac::MacIsReallyEnabled()
|
bool wxWindowMac::MacIsReallyEnabled()
|
||||||
|
Reference in New Issue
Block a user