svtools/source/config/accessibilityoptions.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit bff6a734dd4c2d5572a10f39a3a8dd5313c2278a Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Aug 23 12:50:47 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Aug 24 09:53:26 2023 +0200 tdf#156847 Transparency in drop-down lists Line and Width on Sidebar regression from commit 1527fa8435ef415678b2e4a6972f5e378ee5cab1 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Tue Jun 6 11:20:17 2023 +0200 convert SvtAccessibilityOptions to officecfg where possible where the method call returns a std::optional<bool> which is translated to a bool, resulting a true value from an optional<false> Change-Id: I2182cae5172798f38194ee86dbb32ef65e3e24be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155974 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx index 1afe6113f297..460354cae319 100644 --- a/svtools/source/config/accessibilityoptions.cxx +++ b/svtools/source/config/accessibilityoptions.cxx @@ -146,7 +146,8 @@ void SvtAccessibilityOptions::SetVCLSettings() StyleSettingsChanged = true; } - const bool bPreviewUsesCheckeredBackground(officecfg::Office::Common::Accessibility::PreviewUsesCheckeredBackground::get()); + std::optional<bool> bTmp = officecfg::Office::Common::Accessibility::PreviewUsesCheckeredBackground::get(); + const bool bPreviewUsesCheckeredBackground = bTmp.value_or(false); if(aStyleSettings.GetPreviewUsesCheckeredBackground() != bPreviewUsesCheckeredBackground) {