diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optcolor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index fd4bcab3471c..9487c9a8aab4 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -1024,7 +1024,7 @@ IMPL_LINK(ColorConfigCtrl_Impl, ControlFocusHdl, Control*, pCtrl) long aCtrlPosY = pCtrl->GetPosPixel().Y(); unsigned const nWinHeight = m_pScrollWindow->GetSizePixel().Height(); unsigned const nEntryHeight = m_pScrollWindow->GetEntryHeight(); - if (0 != (GETFOCUS_TAB & pCtrl->GetGetFocusFlags()) && + if ((GetFocusFlags::Tab & pCtrl->GetGetFocusFlags()) && (aCtrlPosY < 0 || nWinHeight < aCtrlPosY + nEntryHeight) ) { long nThumbPos = m_pVScroll->GetThumbPos(); |