summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-08-23 14:20:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-23 15:43:23 +0200
commitfc2dc496434fdb6f0babde509ee22c2952d532d0 (patch)
tree61e8f9a076eafb50dd90cdc894ef4b1f4891c99b /sc/source/core
parent6d9f68e47a1984fe310293ea2318e314f4a18bb2 (diff)
fix bug inScGlobal::CheckWidthInvalidate
introduced in commit 6adabd915d931b845fcf2fef15fbf3fca14ec9b3 Author: Luboš Luňák <l.lunak@collabora.com> Date: Sun Mar 6 16:53:47 2022 +0100 faster check whether attributes have changed (tdf#117366) Change-Id: I6f4eadcda9bd59f7ae8eff61b66162223fdc9700 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155976 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/global.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 459798d1f26f..027bc5768a35 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -188,7 +188,7 @@ bool ScGlobal::CheckWidthInvalidate( bool& bNumFormatChanged,
const SfxItemSet& rOldAttrs )
{
std::optional<bool> equal = ScPatternAttr::FastEqualPatternSets( rNewAttrs, rOldAttrs );
- if( equal.has_value() && equal )
+ if( equal.has_value() && *equal )
{
bNumFormatChanged = false;
return false;