| commit | fd8a7f0b6ca9454401d035c6b8d822f671e1849f | [log] |
|---|---|---|
| author | Rafael Lima <rafael.palma.lima@gmail.com> | Fri Dec 02 11:06:07 2022 +0000 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Dec 05 21:18:10 2022 +0000 |
| tree | bff42fbff01500de007a2db6dc5f49c9d6ad81ad | |
| parent | 21044e1469e95d30422c498ad0119d0ce76a6acd [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> (cherry picked from commit 12732eb7c34baa3f846ec6d0c10f8987051ace34) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143588 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx index 5eee10d..fccb20f 100644 --- a/starmath/source/tmpdevice.cxx +++ b/starmath/source/tmpdevice.cxx
@@ -49,7 +49,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;