sc/source/core/data/patattr.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit a8edd6684de55b9de1dc4b6b69aaf91f634e4b57
Author: Caolán McNamara <[email protected]>
AuthorDate: Mon Mar 10 11:38:51 2025 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Mon Mar 10 14:47:03 2025 +0100
this should hold, otherwise the erase isn't doing anything
Change-Id: I2982a48a05da2918a4c73628340e9e7c5f2663de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182732
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 45b62fb1a01f..46fe77288de7 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -152,6 +152,7 @@ void CellAttributeHelper::doUnregister(const ScPatternAttr&
rCandidate)
if (mpLastHit == &rCandidate)
mpLastHit = nullptr;
+ assert(maRegisteredCellAttributes.find(&rCandidate) !=
maRegisteredCellAttributes.end());
maRegisteredCellAttributes.erase(&rCandidate);
delete &rCandidate;
}