[REVIEW 3-6][REVIEW 3-6-1] Fix for fdo#52451
kohei.yoshida at gmail.com
Tue Aug 21 19:34:51 PDT 2012
cherry-picked to 3-6 and 3-6-1 in order to fix
The default extensions for saved files were determined from their
respective filters, which in turn derived the data from their associated
file types. This works fine for most filters because either 1) they
have one-to-one correspondence between the filter and the file type, or
2) their associated file type has only one extension.
However, we need to give special treatment to the plain text file type,
because its preferred file extension type is .txt when saving from
Writer, and .csv when saving from Calc. And unlike the type detection
process during import where we can have multiple extensions for each
file type, we can only associate one file extension for each file type
The safest way to achieve that is to add a preferred extension property
to the plain text filters, which motivated my fix for the bug.
Please consider backporting this to 3-6-1 if appropriate. The change
should only affect the plain text filters during export.
Kohei Yoshida, LibreOffice hacker, Calc
More information about the LibreOffice