[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - sfx2/source
Heiko Tietze (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 26 13:28:06 UTC 2020
sfx2/source/control/recentdocsview.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit ff703b87e1f9872aeff36a47ac813390befc5522
Author: Heiko Tietze <tietze.heiko at gmail.com>
AuthorDate: Tue Feb 25 14:16:22 2020 +0100
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Wed Feb 26 14:27:34 2020 +0100
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 at documentfoundation.org>
(cherry picked from commit f4b5b12fbe7eb0260119445ac39a28427fef3ee6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89514
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
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);
}
More information about the Libreoffice-commits
mailing list