From: Vadim Zeitlin Date: Wed, 6 Feb 2013 00:42:09 +0000 (+0000) Subject: Fix harmless g++ warning about operator precedence. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/79fdb1d1f7e17a858efc2dfc69bdc99fbd386a9d?ds=sidebyside Fix harmless g++ warning about operator precedence. Add parentheses to suppress "&& inside ||" warning. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index 76c1c0a5fe..168604a030 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -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;