]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless g++ warning about operator precedence.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Feb 2013 00:42:09 +0000 (00:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Feb 2013 00:42:09 +0000 (00:42 +0000)
Add parentheses to suppress "&& inside ||" warning.

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

src/msw/webview_ie.cpp

index 76c1c0a5feb35fa8aac6f8ad537147669a3ee6ba..168604a0306aa7cf38e2840024c1509c777fc924 100644 (file)
@@ -962,7 +962,7 @@ bool wxWebViewIE::IsElementVisible(IHTMLElement* elm)
                     is_visible = false;
                 }
                 //Check if the object has the style visibility:hidden.
-                if(is_visible && (style->get_visibility(&tmp_bstr) != S_OK) || 
+                if((is_visible && (style->get_visibility(&tmp_bstr) != S_OK)) ||
                   (tmp_bstr != NULL && _wcsicmp(tmp_bstr, L"hidden") == 0))
                 {
                     is_visible = false;