wizards/source/sfdocuments/SF_Document.xba | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8f6b7429ed123526659c197663bf5d950f461037 Author: Jean-Pierre Ledure <j...@ledure.be> AuthorDate: Mon Aug 22 17:04:16 2022 +0200 Commit: Jean-Pierre Ledure <j...@ledure.be> CommitDate: Tue Aug 23 09:49:13 2022 +0200 ScriptForge - (SF_Document) fix Import/ExportFilters properties in the internal method _GetFilterNames(), in an array of PropertyValues, 2 indexes were hardcoded to optimize their access. The sequence of items has been changed in LO 7.4. The search of the correct Name-Value pairs is reviewed to make it independent of their position in the array. No impact on documentation. The function is of minor importance. Patch for LO 7.4 to make only if bug reported in bugzilla. Change-Id: I2d3147c9c7624bf79a4e077469223794dc2398bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138695 Tested-by: Jean-Pierre Ledure <j...@ledure.be> Reviewed-by: Jean-Pierre Ledure <j...@ledure.be> Tested-by: Jenkins diff --git a/wizards/source/sfdocuments/SF_Document.xba b/wizards/source/sfdocuments/SF_Document.xba index 7c9991124d63..30508f2e87b1 100644 --- a/wizards/source/sfdocuments/SF_Document.xba +++ b/wizards/source/sfdocuments/SF_Document.xba @@ -1318,9 +1318,9 @@ Try: For Each sFilter In vAllFilters vFilter = oFilterFactory.getByName(sFilter) - sType = vFilter(12).Value ' Hard-coded index for document types + sType = ScriptForge.SF_Utils._GetPropertyValue(vFilter, "DocumentService") If sType = sIdentifier Then - lFlags = vFilter(10).Value ' Hard-coded index for flags + lFlags = ScriptForge.SF_Utils._GetPropertyValue(vFilter, "Flags") ' export: flag is even ' import: flag is odd and flag/2 is even ' import/export: flag is odd and flag/2 is odd