editeng/source/editeng/impedit3.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit a37c185bbc598d57385ab461c0a85c1b1b78c325
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Wed Aug 28 13:23:43 2024 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Aug 29 11:12:10 2024 +0200

    LOK: avoid dark auto color font on dark background
    
    Change-Id: I259d1af222af33c0226a3d11c7b146a8a5fd72f5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172527
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172563
    Tested-by: Jenkins

diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index b627c2447e81..4c11d780c6f8 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -4958,9 +4958,7 @@ Color ImpEditEngine::GetAutoColor() const
     SfxViewShell* pKitSh = comphelper::LibreOfficeKit::isActive() ? 
SfxViewShell::Current() : nullptr;
     if (pKitSh)
     {
-        // Get document background color from current view instead
-        aColor = pKitSh->GetColorConfigColor(svtools::DOCCOLOR);
-        if (aColor.IsDark())
+        if (GetBackgroundColor().IsDark() )
             aColor = COL_WHITE;
         else
             aColor = COL_BLACK;

Reply via email to