diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2020-02-25 14:16:22 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-02-26 14:27:34 +0100 |
commit | ff703b87e1f9872aeff36a47ac813390befc5522 (patch) | |
tree | 0c94a7e2c4daef5594888ca2f97da625d799a66c /sfx2 | |
parent | 14a4992311a7cffdf66f8c4656b0c9cb5ebd4e14 (diff) |
Resolves tdf#130742 - Flat ODF in start center
Added fodt,fods,fopd,fodg to typeMatchesExtension
Change-Id: Ife8139af87ecc5af8a5e98c9d9dd7830c3a3231a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89455
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
(cherry picked from commit f4b5b12fbe7eb0260119445ac39a28427fef3ee6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89514
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index 414f1236ce9f..61a2f35ac861 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -154,21 +154,21 @@ bool RecentDocsView::typeMatchesExtension(ApplicationType type, const OUString & { bool bRet = false; - if (rExt == "odt" || rExt == "doc" || rExt == "docx" || + if (rExt == "odt" || rExt == "fodt" || rExt == "doc" || rExt == "docx" || rExt == "rtf" || rExt == "txt" || rExt == "odm" || rExt == "otm") { bRet = static_cast<bool>(type & ApplicationType::TYPE_WRITER); } - else if (rExt == "ods" || rExt == "xls" || rExt == "xlsx") + else if (rExt == "ods" || rExt == "fods" || rExt == "xls" || rExt == "xlsx") { bRet = static_cast<bool>(type & ApplicationType::TYPE_CALC); } - else if (rExt == "odp" || rExt == "pps" || rExt == "ppt" || + else if (rExt == "odp" || rExt == "fodp" || rExt == "pps" || rExt == "ppt" || rExt == "pptx") { bRet = static_cast<bool>(type & ApplicationType::TYPE_IMPRESS); } - else if (rExt == "odg") + else if (rExt == "odg" || rExt == "fodg") { bRet = static_cast<bool>(type & ApplicationType::TYPE_DRAW); } |