X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..a7ba5d1efbd9bcaa39d47d7752c0382bd220a42f:/utils/screenshotgen/src/autocapture.cpp diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp index c425010e54..b3b74db03e 100644 --- a/utils/screenshotgen/src/autocapture.cpp +++ b/utils/screenshotgen/src/autocapture.cpp @@ -3,7 +3,7 @@ // Purpose: Implement wxCtrlMaskOut class // Author: Utensil Candel (UtensilCandel@@gmail.com) // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". @@ -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();