diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-27 13:47:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-28 12:47:05 +0200 |
commit | 4c93c30c79ae885d488a8a04d383fe5308a1d520 (patch) | |
tree | c0309401c718c0459dd1a0035bcbddd113d655b8 /cui | |
parent | 46a985feca255abbebf826be6103ee8cc7f2cde1 (diff) |
convert GETFOCUS constants to scoped enum
Change-Id: I7c324bb6358be28c119592850eb7607479279f09
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(); |