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/inc/DashedLine.hxx | |
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/inc/DashedLine.hxx')
-rw-r--r-- | sw/source/uibase/inc/DashedLine.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/inc/DashedLine.hxx b/sw/source/uibase/inc/DashedLine.hxx index a2d2aa1b012f..f4b808ec29ad 100644 --- a/sw/source/uibase/inc/DashedLine.hxx +++ b/sw/source/uibase/inc/DashedLine.hxx @@ -10,15 +10,16 @@ #define INCLUDED_SW_SOURCE_UIBASE_INC_DASHEDLINE_HXX #include <vcl/ctrl.hxx> +#include <viewopt.hxx> /** Class for displaying a dashed line in the Writer GUI. */ class SwDashedLine : public Control { - Color& (*m_pColorFn)(); + const Color& (SwViewOption::*m_pColorFn)() const; public: - SwDashedLine(vcl::Window* pParent, Color& (*pColorFn)()); + SwDashedLine(vcl::Window* pParent, const Color& (SwViewOption::*pColorFn)() const); virtual ~SwDashedLine() override; virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; |