From 91d8af2c5cf4e8ec0f1ce0e532e0c896de77750b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 May 2018 21:28:41 +0100 Subject: focus rect for value set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I208cf42db4256bb7286222781cf2bf29f843c673 Reviewed-on: https://gerrit.libreoffice.org/55122 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svtools/source/control/valueset.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svtools') diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 3c8e5cbcc753..dc5e52896641 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -3244,6 +3244,8 @@ void SvtValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 WinBits nStyle = GetStyle(); if (nStyle & WB_MENUSTYLEVALUESET) { + if (bFocus) + DrawFocusRect(rRenderContext, aRect); if (bDrawSel) { rRenderContext.SetLineColor(mbBlackSel ? COL_BLACK : aDoubleColor); @@ -3296,6 +3298,8 @@ void SvtValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 rRenderContext.SetLineColor(COL_LIGHTGRAY); } rRenderContext.DrawRect(aRect2); + if (bFocus) + DrawFocusRect(rRenderContext, aRect2); } ImplDrawItemText(rRenderContext, pItem->maText); -- cgit