summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-05-03 13:35:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-05-03 13:40:28 +0100
commit25547fbddda1d540d2191e9e9a893c7f263b80e2 (patch)
treee85d42390aeb4bff1e0bb30998f0b1edadf94d1e /wizards
parentb10e69287c42db61679d70146ed5e7c54ee1863e (diff)
Related: fdo#60265 fix lunatic way to detect special filter name
The use of SBMAXEXTENSIONLENGTH appears to be an insane way to detect full filter names and map them back to short suffixes but we are passing suffixes separated by | and if that string hits the SBMAXEXTENSIONLENGTH it gets blanked. So, lets try only doing the conversion to suffix if the filter name starts with a common substr handled by SetExtension Change-Id: I42914d3e042133a2c5e28c9704b5fded7ca938dc
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/importwizard/DialogModul.xba2
-rw-r--r--wizards/source/importwizard/FilesModul.xba2
2 files changed, 1 insertions, 3 deletions
diff --git a/wizards/source/importwizard/DialogModul.xba b/wizards/source/importwizard/DialogModul.xba
index c5210ce88595..673113fc59ce 100644
--- a/wizards/source/importwizard/DialogModul.xba
+++ b/wizards/source/importwizard/DialogModul.xba
@@ -74,8 +74,6 @@ Public XMLTemplateList()
&apos; Applications(X,8) = &quot;File:///...&quot; (TargetUrl of the templates)
&apos; Applications(X,9) = 0 (Key to the original Index of the Applications)
-Public Const SBMAXEXTENSIONLENGTH = 15
-
Sub FillStep_Welcome()
Dim i as Integer
diff --git a/wizards/source/importwizard/FilesModul.xba b/wizards/source/importwizard/FilesModul.xba
index b33404b1d537..4e2bd4c156b7 100644
--- a/wizards/source/importwizard/FilesModul.xba
+++ b/wizards/source/importwizard/FilesModul.xba
@@ -187,7 +187,7 @@ Dim LocXMLTemplateContent as String
iKey = Applications(ApplIndex, SBAPPLKEY)
CurListString = PathCollection(CollectIndex, 2)
LocExtension = sFilterName(iKey +DistIndex, 0)
- If Len(LocExtension) &gt; SBMAXEXTENSIONLENGTH Then &apos; 7 == Length of two extensions like &apos;sda|sdd
+ If Instr(LocExtension, &quot;vnd.sun.xml.&quot;) = 1 Then
LocExtension = SetExtension(LocExtension)
LocContentString = sFilterName(iKey +DistIndex, 0)
LocContentString = ReplaceString(LocContentString, &quot;|&quot;, &quot;;&quot;)