[Kst] extragear/graphics/kst/src/datasources/qimagesource

George Staikos staikos at kde.org
Thu Feb 22 23:57:40 CET 2007


SVN commit 636383 by staikos:

correct two issues found during porting - in particular a search of the wrong string


 M  +2 -2      qimagesource.cpp  


--- trunk/extragear/graphics/kst/src/datasources/qimagesource/qimagesource.cpp #636382:636383
@@ -247,7 +247,7 @@
   if ( ftype.isEmpty() ) return 0;
 
   if ( ftype == "TIFF" ) {
-    if ( ftype.find( ".tif",  -5, false )<0 ) return 0;
+    if ( filename.find( ".tif",  -5, false )<0 ) return 0;
   }
 
   return 90;
@@ -266,7 +266,7 @@
   if (typeSuggestion) {
     *typeSuggestion = "QImage compatible Image";
   }
-  if ( QImage::imageFormat( filename ) ) {
+  if ( !QImage::imageFormat( filename ).isEmpty() ) {
     fieldList.append("INDEX");
     fieldList.append( "GRAY" );
     fieldList.append( "RED" );


More information about the Kst mailing list