summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2017-08-02 03:34:24 +0200
committerAndras Timar <andras.timar@collabora.com>2017-08-11 19:55:31 +0200
commit13f71ea93f723c1d75002f5c8c4d3c3a8fbcb3f4 (patch)
tree0620df90b3fa45ce9a1f944e3c3fa4c04e2fa58d
parente0ac06d9c6325447253c819573dfe41eb627617d (diff)
tdf#110987: type detection, binary Office formats > templates
The templates for binary MS Office formats were higher prioritized than non-templates, this caused files in binary format and lacking file extension to be identified as templates. Change-Id: I5638b38dfa0a7520dd09cb497c05b6af0eb00834 Reviewed-on: https://gerrit.libreoffice.org/41051 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--filter/source/config/cache/typedetection.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index 3559e9b65276..16c0f1e9a2a6 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -183,25 +183,25 @@ int getFlatTypeRank(const OUString& rType)
"writer_T602_Document",
"writer_WordPerfect_Document",
"writer_MS_Works_Document",
- "writer_MS_Word_97_Vorlage",
"writer_MS_Word_97",
- "writer_MS_Word_95_Vorlage",
+ "writer_MS_Word_97_Vorlage",
"writer_MS_Word_95",
+ "writer_MS_Word_95_Vorlage",
"writer_MS_WinWord_60",
"writer_MS_WinWord_5",
"MS Excel 2007 Binary",
- "calc_MS_Excel_97_VorlageTemplate",
"calc_MS_Excel_97",
- "calc_MS_Excel_95_VorlageTemplate",
+ "calc_MS_Excel_97_VorlageTemplate",
"calc_MS_Excel_95",
- "calc_MS_Excel_5095_VorlageTemplate",
+ "calc_MS_Excel_95_VorlageTemplate",
"calc_MS_Excel_5095",
- "calc_MS_Excel_40_VorlageTemplate",
+ "calc_MS_Excel_5095_VorlageTemplate",
"calc_MS_Excel_40",
+ "calc_MS_Excel_40_VorlageTemplate",
"calc_Pocket_Excel_File",
- "impress_MS_PowerPoint_97_Vorlage",
- "impress_MS_PowerPoint_97_AutoPlay",
"impress_MS_PowerPoint_97",
+ "impress_MS_PowerPoint_97_AutoPlay",
+ "impress_MS_PowerPoint_97_Vorlage",
"calc_Lotus",
"calc_QPro",
"calc_SYLK",