[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: [PATCH] Mime error when loading KWord file
From: Nicolas Goutte <nicog () snafu ! de>
Date: 2001-11-30 22:36:38
[Download RAW message or body]
On Friday, 30. November 2001 22:38, David Faure wrote:
> On Friday 30 November 2001 21:10, Nicolas Goutte wrote:
> > I have attached a small patch for kword/kwdoc.cc.
> >
> > At loading, if the KWord file has no mime type defined, the error message
> > becomes:
> >
> > "Invalid document. Expected mimetype application/x-kword, got "
> >
> > As it is a little curious and as it has made me think first that it is a
> > KWord bug, I have added another message in case of an empty string.
>
> Ok ;-)
>
> (I guess this is in fact a bug in some import filter, right ?)
Yes, it was working on the AbiWord import filter.
I have just discovered what had happened.
I have generated a file with an invalid DOCTYPE, upsetting QT's parser.
However KoDocument::loadNativeFormat does not care about the return value of
QDomDocument::setContent.
Therefore only at the test of the mime type, a problem was found.
Have a nice day/evening/night!
_______________________________________________
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