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

List:       koffice-devel
Subject:    KWord and Word 2 files
From:       Will Newton <will () misconception ! org ! uk>
Date:       2002-04-29 1:34:11
[Download RAW message or body]

KWord currently crashes when trying to load Word 2 files. I am attempting to 
make KWord more friendly to these old documents. I have not tested this patch 
due to not having a full build environment for KDE, but it looks to me 
obvious. This stops OLEFilter from segfaulting, and so should mean the next 
filter is tried (eventually I plan to write a Word 2 importer).

Please CC any discussion.

["olefilter-klaola.diff" (text/x-diff)]

--- koffice.old/filters/olefilters/lib/klaola.cc	Mon Apr  8 21:41:12 2002
+++ koffice/filters/olefilters/lib/klaola.cc	Mon Apr 29 02:27:47 2002
@@ -39,8 +39,10 @@
         maxblock = file.length / 0x200 - 2;
         maxSblock=0;  // will be set in readSmallBlockDepot
 
-        if(!parseHeader())
+        if(!parseHeader()) {
             ok=false;
+	    return;
+	}
         if(ok) {
             readBigBlockDepot();
             readSmallBlockDepot();

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

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

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