Summary: | files written by KOffice apps are not loadable anymore | ||
---|---|---|---|
Product: | [Applications] koffice | Reporter: | Bernd Pol <bernd.pol> |
Component: | general | Assignee: | KOffice Bug Wranglers <koffice-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
test file which crashed kword on load
This is the corrupted file original, uncorrupted file |
Description
Bernd Pol
2004-03-21 21:02:05 UTC
Created attachment 5321 [details]
test file which crashed kword on load
Created attachment 5322 [details]
This is the corrupted file
(Sorry, wrong file sent.)
Created attachment 5323 [details]
original, uncorrupted file
This file was loaded into KWord, then saved as Test.kwd
CVS commit by faure: Ouch, logic error introduced in my last commit to this file... Thanks for the report, sorry for the breakage. CCMAIL: 78168-done@bugs.kde.org M +1 -1 kzip.cpp 1.47 --- kdelibs/kio/kio/kzip.cpp #1.46:1.47 @@ -760,5 +760,5 @@ bool KZip::closeArchive() crc = crc32(crc, (Bytef *)buffer, bufferSize ); - bool ok = ( device()->writeBlock( buffer, bufferSize ) != bufferSize ); + bool ok = ( device()->writeBlock( buffer, bufferSize ) == bufferSize ); delete[] buffer; if ( !ok ) |