However, if there is m_dummyNSView then there must be m_cocoaNSView.
Therefore, moved wxASSERT(m_cocoaNSView) inside if(m_dummyNSView)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19770
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxWindowCocoa::CocoaRemoveFromParent(void)
{
- wxASSERT(m_cocoaNSView);
if(m_dummyNSView)
{
+ wxASSERT(m_cocoaNSView);
// balances the alloc
[m_dummyNSView removeFromSuperview];
// But since we also retained it ourselves