summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2022-08-22 17:04:16 +0200
committerJean-Pierre Ledure <jp@ledure.be>2022-08-23 09:49:13 +0200
commit8f6b7429ed123526659c197663bf5d950f461037 (patch)
tree8f198ab1d8f34ebaa4b050d69e691d39817dd46d /wizards
parentc06e4fffd5b1148ba4fad59866ff9efd20e5e3e8 (diff)
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 <jp@ledure.be> Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/sfdocuments/SF_Document.xba4
1 files changed, 2 insertions, 2 deletions
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 &apos; Hard-coded index for document types
+ sType = ScriptForge.SF_Utils._GetPropertyValue(vFilter, &quot;DocumentService&quot;)
If sType = sIdentifier Then
- lFlags = vFilter(10).Value &apos; Hard-coded index for flags
+ lFlags = ScriptForge.SF_Utils._GetPropertyValue(vFilter, &quot;Flags&quot;)
&apos; export: flag is even
&apos; import: flag is odd and flag/2 is even
&apos; import/export: flag is odd and flag/2 is odd