diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-23 12:50:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-24 09:53:26 +0200 |
commit | bff6a734dd4c2d5572a10f39a3a8dd5313c2278a (patch) | |
tree | 891f688f95e122d844448ebb3a1078e45a4af71e /svtools | |
parent | a3ce697e10a63d96cd081979b0f134239305a7cc (diff) |
tdf#156847 Transparency in drop-down lists Line and Width on Sidebar
regression from
commit 1527fa8435ef415678b2e4a6972f5e378ee5cab1
Author: Noel Grandin <noel.grandin@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.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/config/accessibilityoptions.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |