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

List:       kde-commits
Subject:    kdegraphics/kfile-plugins/jpeg
From:       Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date:       2002-12-30 16:07:34
[Download RAW message or body]

CVS commit by pfeiffer: 

catch exceptions
CCMAIL: 52356-close@bugs.kde.org


  M +9 -2      kfile_jpeg.cpp   1.14


--- kdegraphics/kfile-plugins/jpeg/kfile_jpeg.cpp  #1.13:1.14
@@ -190,6 +190,13 @@ bool KJpegPlugin::readInfo( KFileMetaInf
 
     // parse the jpeg file now
-    if (ImageInfo.scan(info.path()) == false) {
+    try {
+        if ( !ImageInfo.scan(info.path()) ) {
         kdDebug(7034) << "Not a JPEG file!\n";
+            return false;
+        }
+    }
+    catch (FatalError& e) { // malformed exif data?
+        kdDebug(7034) << "Exception caught while parsing Exif data of: " << info.path() << endl;
+        e.debug_print();
         return false;
     }


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

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