diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-06-25 15:41:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-26 07:53:06 +0200 |
commit | f55792eed4d2e0f6891a2bdd8639f8e962d95c5b (patch) | |
tree | d992ee8cca256743509394d8277e72a832e7f6ee /sc/source/ui/view/output2.cxx | |
parent | 9fc0b2b9b96d87eb642a3b29e9dcb5d6273265eb (diff) |
convert ScAutoFontColorMode to scoped enum
Change-Id: Id34bac78719943bd4c4cbfa60e0cb86b4ca570f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153562
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index d8dfb064e605..07876568cb9a 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -325,12 +325,12 @@ void ScDrawStringsVars::SetPattern( if ( pOutput->mbUseStyleColor ) { if ( pOutput->mbForceAutoColor ) - eColorMode = bCellContrast ? SC_AUTOCOL_IGNOREALL : SC_AUTOCOL_IGNOREFONT; + eColorMode = bCellContrast ? ScAutoFontColorMode::IgnoreAll : ScAutoFontColorMode::IgnoreFont; else - eColorMode = bCellContrast ? SC_AUTOCOL_IGNOREBACK : SC_AUTOCOL_DISPLAY; + eColorMode = bCellContrast ? ScAutoFontColorMode::IgnoreBack : ScAutoFontColorMode::Display; } else - eColorMode = SC_AUTOCOL_PRINT; + eColorMode = ScAutoFontColorMode::Print; if (bPixelToLogic) pPattern->fillFont(aFont, eColorMode, pFmtDevice, nullptr, pCondSet, nScript, &aBackConfigColor, &aTextConfigColor); |