sw/source/core/doc/doc.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f15a0d82b9be81fa9c7cb5327558ee639d4cbad6
Author:     Bjoern Michaelsen <bjoern.michael...@libreoffice.org>
AuthorDate: Sat Mar 14 23:44:50 2020 +0100
Commit:     Björn Michaelsen <bjoern.michael...@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.michael...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to