diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edfld.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx index 54ee70970787..dd05535e4e9f 100644 --- a/sw/source/core/edit/edfld.cxx +++ b/sw/source/core/edit/edfld.cxx @@ -402,14 +402,9 @@ bool SwEditShell::IsAnyDatabaseFieldInDoc()const case SwFieldIds::DbNumSet: case SwFieldIds::DbSetNumber: { - SwIterator<SwFormatField,SwFieldType> aIter( *pFieldType ); - SwFormatField* pField = aIter.First(); - while(pField) - { - if(pField->IsFieldInDoc()) - return true; - pField = aIter.Next(); - } + std::vector<SwFormatField*> vFields; + pFieldType->GatherFields(vFields); + return vFields.size(); } break; default: break; |