vcl/source/filter/FilterConfigCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 35db43e328aca8290eda72806c52d757a8a5f579 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Thu Jan 13 15:52:38 2022 +0100 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Thu Jan 27 04:58:53 2022 +0100 do not require that an image type has a 3-character extension WebP does not (AFAIK) have any other extension other than .webp, so do require that. It's probably some old idea from the times when files were expected to have 3-character extensions. Change-Id: I64db137e1f5345f12d27ad85d83b715f6e10167d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128925 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx index a314a6ca1660..370e8cffed8b 100644 --- a/vcl/source/filter/FilterConfigCache.cxx +++ b/vcl/source/filter/FilterConfigCache.cxx @@ -175,7 +175,7 @@ void FilterConfigCache::ImplInit() // The first extension will be used // to generate our internal FilterType ( BMP, WMF ... ) OUString aExtension( aEntry.GetShortName() ); - if (aExtension.getLength() != 3) + if (aExtension.isEmpty()) continue; if ( aEntry.nFlags & 1 )