Set the m_isShown flag appropriately from Show()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-03-24 21:41:49 +00:00
parent d449cf47c3
commit a6b4ff2e62

View File

@@ -148,7 +148,6 @@ bool wxWindow::Show(bool show)
// But since we also retained it ourselves
[m_dummyNSView release];
m_dummyNSView = nil;
return true;
}
else
{
@@ -157,8 +156,9 @@ bool wxWindow::Show(bool show)
// NOTE: replaceSubView will cause m_cocaNSView to be released
[[m_cocoaNSView superview] replaceSubview:m_cocoaNSView with:m_dummyNSView];
// m_coocaNSView is now only retained by us
return true;
}
m_isShown = show;
return true;
}
void wxWindowCocoa::DoSetSize(int x, int y, int width, int height, int sizeFlags)