sc/source/ui/view/gridwin.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b1c318e9f18f6a4e56d42fc7b7c5c2942b28941d
Author:     Natalia Gavrilova <[email protected]>
AuthorDate: Fri Sep 24 22:31:44 2021 +0300
Commit:     Heiko Tietze <[email protected]>
CommitDate: Mon Sep 27 09:29:12 2021 +0200

    tdf#142121 Cell focus rectangle does not use font color
    
    * Focused rectangle uses highlight color instead of font
    
    Change-Id: I861f944b449d31183f082864e57071e401d3c451
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122602
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <[email protected]>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 16ce773a287b..ef01c2ab1abe 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -6264,7 +6264,7 @@ void ScGridWindow::UpdateCursorOverlay()
 
             if (xOverlayManager.is())
             {
-                Color aCursorColor( 
SC_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor );
+                Color aCursorColor = 
GetSettings().GetStyleSettings().GetHighlightColor();
                 if (mrViewData.GetActivePart() != eWhich)
                     // non-active pane uses a different color.
                     aCursorColor = 
SC_MOD()->GetColorConfig().GetColorValue(svtools::CALCPAGEBREAKAUTOMATIC).nColor;

Reply via email to