[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/libs/kipi-plugins
From:       Gilles Caulier <caulier.gilles () free ! fr>
Date:       2006-10-11 11:31:12
Message-ID: 1160566272.138783.10454.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 594457 by cgilles:

kipi-plugins from trunk : Raw converter and JPEGLossLess plugin don't check properly \
                the filenale extension.
CCBUGS: 135237


 M  +1 -1      jpeglossless/utils.cpp  
 M  +2 -2      rawconverter/dcrawiface.cpp  
 M  +1 -1      rawconverter/plugin_rawconverter.cpp  


--- trunk/extragear/libs/kipi-plugins/jpeglossless/utils.cpp #594456:594457
@@ -61,7 +61,7 @@
     QString rawFilesExt(kipi_raw_file_extentions);
 
     QFileInfo fileInfo(file);
-    if (rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
         return true;
 
     return false;
--- trunk/extragear/libs/kipi-plugins/rawconverter/dcrawiface.cpp #594456:594457
@@ -141,7 +141,7 @@
     QFileInfo fileInfo(path);
     QString   rawFilesExt(kipi_raw_file_extentions);
 
-    if (!fileInfo.exists() || !rawFilesExt.upper().contains( \
fileInfo.extension().upper() )) +    if (!fileInfo.exists() || \
!rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))  return false;
 
     // Try to extract embedded thumbnail using dcraw with options:
@@ -256,7 +256,7 @@
         return false;
     }
 
-    if (!rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (!rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
     {
         identify = i18n("Not a RAW file");
         return false;
--- trunk/extragear/libs/kipi-plugins/rawconverter/plugin_rawconverter.cpp \
#594456:594457 @@ -116,7 +116,7 @@
     QString rawFilesExt(kipi_raw_file_extentions);
 
     QFileInfo fileInfo(filePath);
-    if (rawFilesExt.upper().contains( fileInfo.extension().upper() ))
+    if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() ))
         return true;
 
     return false;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic