diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-07-29 15:48:35 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-08-01 08:16:03 +0200 |
commit | 614dfb98cd4705b63bf1e525d3d34df9ce950ebb (patch) | |
tree | 76ec0839bacbc79be05ea0b9acdd565170ccbf8f /include/editeng/borderline.hxx | |
parent | fc996d8d195263f09d8aaf65deaf9d42f7413be8 (diff) |
set finalColor of the ComplexColor in BorderLine and BrushItem
The final color is stored inside the ComplexColor and is used to
represent the final computed color from theme color and/or
transforms.
Change-Id: I405615bba144bfe876b75c565746d9eebc88e973
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155111
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/editeng/borderline.hxx')
-rw-r--r-- | include/editeng/borderline.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/editeng/borderline.hxx b/include/editeng/borderline.hxx index eb7d2f0f4f8e..596b8b59f413 100644 --- a/include/editeng/borderline.hxx +++ b/include/editeng/borderline.hxx @@ -172,8 +172,11 @@ public: model::ComplexColor const& getComplexColor() const { + auto pUnConst = const_cast<SvxBorderLine*>(this); + pUnConst->m_aComplexColor.setFinalColor(GetColor()); return m_aComplexColor; } + void setComplexColor(model::ComplexColor const& rComplexColor) { m_aComplexColor = rComplexColor; @@ -258,4 +261,3 @@ EDITENG_DLLPUBLIC bool operator!=( const SvxBorderLine& rLeft, const SvxBorderLi } // namespace editeng #endif - |