diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2022-12-02 11:06:07 +0000 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2022-12-05 10:52:55 +0000 |
commit | 12732eb7c34baa3f846ec6d0c10f8987051ace34 (patch) | |
tree | 5323080c88f622d6c56f8e0c133dc1f394f7aeb6 /starmath | |
parent | affd2a9511fc0af7cad7e9679c17607540065d7e (diff) |
tdf#148505 Fix COL_AUTO in embedded Math formulas
Change-Id: I8be0289100cbd0921bcb05ffec186155abba8743
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143575
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/tmpdevice.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx index 1e30fbc7cd11..077977b39def 100644 --- a/starmath/source/tmpdevice.cxx +++ b/starmath/source/tmpdevice.cxx @@ -51,7 +51,8 @@ Color SmTmpDevice::GetTextColor(const Color& rTextColor) if (rTextColor == COL_AUTO) { Color aConfigFontColor = SM_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor; - return rOutDev.GetReadableFontColor(aConfigFontColor, rOutDev.GetBackgroundColor()); + Color aConfigDocColor = SM_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor; + return rOutDev.GetReadableFontColor(aConfigFontColor, aConfigDocColor); } return rTextColor; |