diff options
author | Paris Oplopoios <paris.oplopoios@collabora.com> | 2023-03-08 17:34:02 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-03-16 08:41:38 +0000 |
commit | 1916d161902bdd52b8cfa5b29153c8f8c39fce52 (patch) | |
tree | fdb789357ef4e58e3f26066235b5928efcf63437 /sw/source/uibase/frmdlg | |
parent | ee8e9b993595e728f827a5fe6ab1ae5fb1f6aaae (diff) |
De-static-izing colors in SwViewOption
The view colors in SwViewOption were static which means that two
separate views couldn't have different colors
Change-Id: Id595b00ba56bdb210ad1a784cf76e99ead0d6014
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148481
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/uibase/frmdlg')
-rw-r--r-- | sw/source/uibase/frmdlg/colex.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx index 8649a33e049d..b77512b9e8e4 100644 --- a/sw/source/uibase/frmdlg/colex.cxx +++ b/sw/source/uibase/frmdlg/colex.cxx @@ -340,7 +340,7 @@ void SwColumnOnlyExample::Paint(vcl::RenderContext& rRenderContext, const tools: const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings(); const Color& rFieldColor = rStyleSettings.GetFieldColor(); const Color& rDlgColor = rStyleSettings.GetDialogColor(); - const Color& rFieldTextColor = SwViewOption::GetFontColor(); + const Color& rFieldTextColor = SwViewOption::GetCurrentViewOptions().GetFontColor(); Color aGrayColor(COL_LIGHTGRAY); if (rFieldColor == aGrayColor) aGrayColor.Invert(); |