[Libreoffice-commits] core.git: sw/source
Bjoern Michaelsen (via logerrit)
logerrit at kemper.freedesktop.org
Sun Mar 15 01:21:37 UTC 2020
sw/source/core/doc/doc.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit f15a0d82b9be81fa9c7cb5327558ee639d4cbad6
Author: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
AuthorDate: Sat Mar 14 23:44:50 2020 +0100
Commit: Björn Michaelsen <bjoern.michaelsen at libreoffice.org>
CommitDate: Sun Mar 15 02:21:01 2020 +0100
SwDoc::HasInvisibleContent(): SwIterator no more ...
Change-Id: Iff639ea1400f38079cc891f52e583476fb484dc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90500
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen at libreoffice.org>
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index f29135722565..a928eb8b65c2 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1542,7 +1542,9 @@ bool SwDoc::RemoveInvisibleContent()
bool SwDoc::HasInvisibleContent() const
{
- if(SwIterator<SwFormatField,SwFieldType>(*getIDocumentFieldsAccess().GetSysFieldType( SwFieldIds::HiddenPara)).First())
+ std::vector<SwFormatField*> vFields;
+ getIDocumentFieldsAccess().GetSysFieldType( SwFieldIds::HiddenPara)->GatherFields(vFields);
+ if(vFields.size())
return true;
// Search for any hidden paragraph (hidden text attribute)
More information about the Libreoffice-commits
mailing list