diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-26 22:14:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-28 15:39:17 +0100 |
commit | 8fa1493facfe1f088fc99c762b5a8a0773fc1b9c (patch) | |
tree | df691601f990d87dd99e7f7a96fdfff73ad79e1a /chart2 | |
parent | be2ea4ebe3f969ee9ac4c8da40cdbe6d8f011e58 (diff) |
Set chart outliner background to the page bg to resolve 'auto' color
Change-Id: I2498a7d49dbbd7bde017489722c3b655b6d75136
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162649
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/drawinglayer/DrawViewWrapper.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx index 51d3e7c3e63a..56f1440e23ff 100644 --- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx +++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx @@ -215,7 +215,14 @@ void DrawViewWrapper::CompleteRedraw(OutputDevice* pOut, const vcl::Region& rReg svtools::ColorConfig aColorConfig; Color aFillColor( aColorConfig.GetColorValue( svtools::DOCCOLOR ).nColor ); SetApplicationBackgroundColor(aFillColor); + + SdrOutliner& rOutliner = GetModel().GetDrawOutliner(); + Color aOldBackColor = rOutliner.GetBackgroundColor(); + rOutliner.SetBackgroundColor(aFillColor); + E3dView::CompleteRedraw( pOut, rReg ); + + rOutliner.SetBackgroundColor(aOldBackColor); } SdrObject* DrawViewWrapper::getSelectedObject() const |