diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-05 12:14:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-05 15:37:02 +0200 |
commit | 4ce4d8e0d64867a47a8c7355894f6ae3d576db6d (patch) | |
tree | 13f364c5711841315b682391ba1d2611e932c817 /svl | |
parent | dc9771d36ec48c9d6a9d60cfb580469a80136f60 (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.cxx | 5 |
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)) |