diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2020-02-25 14:16:22 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-02-26 10:18:24 +0100 |
commit | f4b5b12fbe7eb0260119445ac39a28427fef3ee6 (patch) | |
tree | 7281cfd34f8c219beaa254b298a76dfecb195198 | |
parent | 813217dee1d809a2c33785c9024dc42671696067 (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>
-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 d875c73dda17..e9120d355a01 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -148,21 +148,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); } |