diff options
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/searchcharmap.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx index 034ebd317a5a..637fbbe0d834 100644 --- a/svx/source/dialog/searchcharmap.cxx +++ b/svx/source/dialog/searchcharmap.cxx @@ -230,6 +230,19 @@ void SvxSearchCharSet::DrawChars_Impl(vcl::RenderContext& rRenderContext, int n1 aPointTxTy.AdjustX(nXHDelta - 1 ); } + // tdf#109214 - highlight the favorite characters + if (isFavChar(aCharStr, mxVirDev->GetFont().GetFamilyName())) + { + const Color aLineCol = rRenderContext.GetLineColor(); + rRenderContext.SetLineColor(aHighlightColor); + rRenderContext.SetFillColor(COL_TRANSPARENT); + // Outer border + rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), Size(nX + 3, nY + 3))); + // Inner border + rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, nY + 1))); + rRenderContext.SetLineColor(aLineCol); + } + Color aTextCol = rRenderContext.GetTextColor(); if (i != nSelectedIndex) { |