svx/source/dialog/charmap.cxx       |    4 ++--
 svx/source/dialog/searchcharmap.cxx |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b466c1ad267e821dbda0a879ab31a2ea00e54b5c
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Wed Mar 1 11:06:49 2023 +0100
Commit:     Andreas Heinisch <andreas.heini...@yahoo.de>
CommitDate: Wed Mar 1 11:18:27 2023 +0000

    tdf#109214 - Highlight the favorites in the grid of special characters
    
    Remove visual artifacts around the corners by using horizontal and
    vertical round.
    
    Change-Id: I9821103c43dfbd93e6f295034b05da8b74e802e4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148040
    Tested-by: Jenkins
    Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de>

diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index bc3950ad2ca6..7dd37c43e106 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -581,9 +581,9 @@ void SvxShowCharSet::DrawChars_Impl(vcl::RenderContext& 
rRenderContext, int n1,
             rRenderContext.SetLineColor(aHighlightColor);
             rRenderContext.SetFillColor(COL_TRANSPARENT);
             // Outer border
-            rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), 
Size(nX + 3, nY + 3)));
+            rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), 
Size(nX + 3, nY + 3)), 1, 1);
             // Inner border
-            rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, 
nY + 1)));
+            rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, 
nY + 1)), 1, 1);
             rRenderContext.SetLineColor(aLineCol);
         }
 
diff --git a/svx/source/dialog/searchcharmap.cxx 
b/svx/source/dialog/searchcharmap.cxx
index 637fbbe0d834..76a3a1a5f767 100644
--- a/svx/source/dialog/searchcharmap.cxx
+++ b/svx/source/dialog/searchcharmap.cxx
@@ -237,9 +237,9 @@ void SvxSearchCharSet::DrawChars_Impl(vcl::RenderContext& 
rRenderContext, int n1
             rRenderContext.SetLineColor(aHighlightColor);
             rRenderContext.SetFillColor(COL_TRANSPARENT);
             // Outer border
-            rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), 
Size(nX + 3, nY + 3)));
+            rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), 
Size(nX + 3, nY + 3)), 1, 1);
             // Inner border
-            rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, 
nY + 1)));
+            rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, 
nY + 1)), 1, 1);
             rRenderContext.SetLineColor(aLineCol);
         }
 

Reply via email to