]> git.saurik.com Git - wxWidgets.git/commitdiff
Adjust testing for non-visible controls in wxActiveXContainer.
authorSteve Lamerton <steve.lamerton@gmail.com>
Thu, 17 Nov 2011 20:39:44 +0000 (20:39 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Thu, 17 Nov 2011 20:39:44 +0000 (20:39 +0000)
Fixes  #13659

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/activex.cpp

index 8a08625124bce72d6b24a0525f1ebe4733a015dd..ca224480b6d9457c50e04d8cd9c57cff2c603d99 100644 (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