summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-01-13 15:52:38 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-01-26 12:18:05 +0100
commitbc3b02c0fe802e38dc3276e9ed915f4310e8f53b (patch)
treeb0fb4ffa41acd11c7ffbcebf7c8572a5523ed89d
parentafaba703549e78767fbeb2ea8fd954fb7410f51d (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.cxx2
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 )