diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-01-13 15:52:38 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-01-26 12:18:05 +0100 |
commit | bc3b02c0fe802e38dc3276e9ed915f4310e8f53b (patch) | |
tree | b0fb4ffa41acd11c7ffbcebf7c8572a5523ed89d | |
parent | afaba703549e78767fbeb2ea8fd954fb7410f51d (diff) |
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
-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 5321ea2599c5..00712cdbdb68 100644 --- a/vcl/source/filter/FilterConfigCache.cxx +++ b/vcl/source/filter/FilterConfigCache.cxx @@ -200,7 +200,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 ) |