diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp index c425010e54..3977b036c7 100644 --- a/utils/screenshotgen/src/autocapture.cpp +++ b/utils/screenshotgen/src/autocapture.cpp @@ -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();