diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-01-13 15:52:38 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-03-14 21:59:40 +0100 |
commit | 2c471664e8e1115dc75c7a023937a8d0542f0a35 (patch) | |
tree | 8764a6d150c8489123f9b8f021ebb632a830f511 | |
parent | only use X509Data (diff) | |
download | core-2c471664e8e1115dc75c7a023937a8d0542f0a35.tar.gz core-2c471664e8e1115dc75c7a023937a8d0542f0a35.zip |
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/+/128977
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | vcl/source/filter/FilterConfigCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx index a315c0279b69..478756ff17f0 100644 --- a/vcl/source/filter/FilterConfigCache.cxx +++ b/vcl/source/filter/FilterConfigCache.cxx @@ -201,7 +201,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 ) |