diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-18 17:15:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-18 20:22:47 +0100 |
commit | 2261734d88fa3bcfbaa037b0a2bc18cf582c3cf5 (patch) | |
tree | fbf54a9d86b61b54510aabd800a0e6a75e6ec79d /sc | |
parent | 7a551570fe8baf1ca68c6c723c3709a56b69730b (diff) |
Resolves: tdf#163831 Invalidate cache if the style is modified
Change-Id: I4a43936a6a7130734f5ae459a9406da99bf0f5f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176727
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/patattr.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx index 284759d1b965..fddc861cb2e0 100644 --- a/sc/source/core/data/patattr.cxx +++ b/sc/source/core/data/patattr.cxx @@ -209,6 +209,8 @@ void CellAttributeHelper::CellStyleCreated(ScDocument& rDoc, const OUString& rNa const ScPatternAttr* pCheck = *it; if (CompareStringPtr(pCheck->GetStyleName(), &rName) != 0) break; + // tdf#163831 Invalidate cache if the style is modified/created + const_cast<ScPatternAttr*>(pCheck)->InvalidateCaches(); if (nullptr == pCheck->GetStyleSheet()) if (const_cast<ScPatternAttr*>(pCheck)->UpdateStyleSheet(rDoc)) // find and store style pointer { |