summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-05 12:14:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-05 15:37:02 +0200
commit4ce4d8e0d64867a47a8c7355894f6ae3d576db6d (patch)
tree13f364c5711841315b682391ba1d2611e932c817 /svl
parentdc9771d36ec48c9d6a9d60cfb580469a80136f60 (diff)
we want to invalidate the current iterator
if there isn't one we shouldn't need to create one to invalidate it Change-Id: Ia936f71c18c45d8e08f013ffa143c196109495ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93471 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/style.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index e6e1adf23cb9..ef1b7078b3f6 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -547,6 +547,11 @@ SfxStyleSearchBits SfxStyleSheetIterator::GetSearchMask() const
return mask;
}
+SfxStyleSheetIterator* SfxStyleSheetBasePool::GetCachedIterator()
+{
+ return pImpl->pIter.get();
+}
+
SfxStyleSheetIterator& SfxStyleSheetBasePool::GetIterator_Impl(SfxStyleFamily eFamily, SfxStyleSearchBits eMask)
{
if (!pImpl->pIter || (pImpl->pIter->GetSearchMask() != eMask) || (pImpl->pIter->GetSearchFamily() != eFamily))