diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 11:07:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 20:33:05 +0200 |
commit | 05773428c51c82a365e16589a1f8ca45823c6403 (patch) | |
tree | d590f65cca287b06482ce388a29826c5d25641b3 /sc | |
parent | 6362c905cf19f2f6cb67bf634091b14c2a8e90ec (diff) |
use officecfg to retrieve GetIsForPagePreviews
Change-Id: I9c7666a4456821e3a2051c8d645183f4e1c5eb55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119412
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/preview.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index f2faf59edd6b..db8dd50eab18 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -20,6 +20,7 @@ #include <scitems.hxx> #include <editeng/eeitem.hxx> +#include <officecfg/Office/Common.hxx> #include <svtools/colorcfg.hxx> #include <svx/fmview.hxx> #include <editeng/sizeitem.hxx> @@ -392,7 +393,7 @@ void ScPreview::DoPrint( ScPreviewLocationData* pFillLocation ) pPrintFunc->SetManualZoom(nZoom); pPrintFunc->SetDateTime(aDateTime); pPrintFunc->SetClearFlag(true); - pPrintFunc->SetUseStyleColor( pScMod->GetAccessOptions().GetIsForPagePreviews() ); + pPrintFunc->SetUseStyleColor( officecfg::Office::Common::Accessibility::IsForPagePreviews::get() ); pPrintFunc->SetDrawView( pDrawView.get() ); |