only remove from parent if not content view, fixes #13068
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -298,7 +298,8 @@ void wxWindowMac::SetPeer(wxOSXWidgetImpl* peer)
|
||||
{
|
||||
if ( GetPeer() )
|
||||
{
|
||||
GetPeer()->RemoveFromParent();
|
||||
if ( !GetPeer()->IsRootControl() )
|
||||
GetPeer()->RemoveFromParent();
|
||||
wxDELETE(m_peer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user