From 1ce077e25b52782f7823b7372664db76a9aa96c9 Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Thu, 17 Nov 2011 20:39:44 +0000 Subject: [PATCH] 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 --- src/msw/ole/activex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0