Adjust testing for non-visible controls in wxActiveXContainer.

Fixes  #13659

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton 2011-11-17 20:39:44 +00:00
parent 97aa7b9955
commit 1ce077e25b

View File

@ -1178,7 +1178,7 @@ void wxActiveXContainer::OnSize(wxSizeEvent& event)
posRect.right = w;
posRect.bottom = h;
if (w <= 0 && h <= 0)
if (w <= 0 || h <= 0)
return;
// extents are in HIMETRIC units