]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless g++ 4.3 warning about suggested parentheses.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 14:16:18 +0000 (14:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 14:16:18 +0000 (14:16 +0000)
Add parentheses around && within ||.

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

utils/screenshotgen/src/autocapture.cpp

index c425010e54d714e7db6e5a25e0424c0e8ed9de33..3977b036c7c6755f70271efcaf871a01235f4011 100644 (file)
@@ -279,7 +279,7 @@ bool AutoCaptureMechanism::Union(wxBitmap* top, wxBitmap* bottom, wxBitmap* resu
 
 wxRect AutoCaptureMechanism::GetRect(wxWindow* ctrl, int flag)
 {
-    if( !(m_flag & AJ_DisableRegionAdjust) && (flag & AJ_RegionAdjust)
+    if( (!(m_flag & AJ_DisableRegionAdjust) && (flag & AJ_RegionAdjust))
         || (m_flag & AJ_AlwaysRegionAdjust) )
     {
         wxWindow * parent = ctrl->GetParent();