vcl/source/filter/FilterConfigCache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8ebded337746af384eca3318f76c696660c78c4d
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:59:19 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/+/128977
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

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 )

Reply via email to