filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 858c452e5e6b7acad6932df7d1cd2f0950d47f33
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Tue Dec 31 16:56:03 2024 -0500
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Jan 2 09:44:18 2025 +0100

    tdf#164201 docx convert-to: prefer Word 2010–365 Document, not 2007
    
    This was made more prominent by mstahl's 7.6
    commit e66ddcd4b66923bc835bd7c5f5c784a809a420a2,
    which rightly forced the compatibilityMode to 12 for Word 2007 exports.
    
    Filtercache registers valid conversion types in a seemingly random order
    "but if it's a 'Preferred' one - set it to the front of the list.
     Of course, multiple 'Preferred' registrations can occur
     (they shouldn't, but they can!) ..."
    
    For DOCX, both writer_MS_Word_2007_XML and writer_OOXML
    say that they are the preferred one,
    and since Word 2007 was processed last, it won.
    
    However, since 2020 we have perferred exporting as compat15 (2013+)
    so make the modern format the preferred filter.
    
    [I looked for more "multiples", but more often than not,
     NOTHING is set as the preferred entry, so first come first served.]
    
    Change-Id: I2e4c95520619e0aa2e1f0d8ae5e8928d0033902e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179589
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu 
b/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu
index 11396057a026..e163be7cafa2 100644
--- a/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu
+++ b/filter/source/config/fragments/types/writer_MS_Word_2007_XML.xcu
@@ -20,7 +20,7 @@
         <prop oor:name="URLPattern"/>
         <prop oor:name="Extensions"><value>docx</value></prop>
         <prop oor:name="MediaType"><value>application/msword</value></prop>
-        <prop oor:name="Preferred"><value>true</value></prop>
+        <prop oor:name="Preferred"><value>false</value></prop>
         <prop oor:name="PreferredFilter"><value>MS Word 2007 XML</value></prop>
         <prop oor:name="UIName"><value xml:lang="en-US">Word 
2007</value></prop>
         <prop oor:name="ClipboardFormat"><value>MSWordDoc</value></prop>

Reply via email to