editeng/source/editeng/impedit3.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 6f70538f9f48939a4b66fc66a20505de596706b2 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Wed Aug 28 13:23:43 2024 +0200 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Aug 28 15:04:03 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> diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index d40bbac0c4be..48547e25ebb7 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -4718,9 +4718,7 @@ Color ImpEditEngine::GetAutoColor() const if (comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current()) { - // Get document background color from current view instead - aColor = SfxViewShell::Current()->GetColorConfigColor(svtools::DOCCOLOR); - if (aColor.IsDark()) + if (GetBackgroundColor().IsDark() ) aColor = COL_WHITE; else aColor = COL_BLACK;