From: Steve Lamerton Date: Thu, 17 Nov 2011 20:39:44 +0000 (+0000) Subject: Adjust testing for non-visible controls in wxActiveXContainer. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1ce077e25b52782f7823b7372664db76a9aa96c9 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 --- diff --git a/src/msw/ole/activex.cpp b/src/msw/ole/activex.cpp index 8a08625124..ca224480b6 100644 --- a/src/msw/ole/activex.cpp +++ b/src/msw/ole/activex.cpp @@ -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