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

List:       koffice
Subject:    Re: Kpresenter: migrating from koffice-1.1.0.beta3.5 to 1.1.0
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-10-03 15:03:39
[Download RAW message or body]

> The reason for the incompatibility is that the file maindoc.xml in the 
> beta3.5 version refers to
> 
> mime="application/x-killustrator"
> 
> Whereas that in version 1.1.0 refers to
> 
> mime="application/x-kontour"

Ouch, forgot about embedded documents when I did the renaming :(

I just applied this patch (would be great if you could test it ;)
(to be applied to koffice/lib/kofficecore/koDocumentChild.cc)

--- koDocumentChild.cc  2001/08/05 19:30:05     1.22
+++ koDocumentChild.cc  2001/10/03 15:04:33
@@ -159,10 +159,13 @@ bool KoDocumentChild::loadDocument( KoSt

   kdDebug(30003) << "Trying to load " << m_tmpURL << endl;

+  if ( m_tmpMimeType == "application/x-killustrator" )
+      m_tmpMimeType = "application/x-kontour";
+
   KoDocumentEntry e = KoDocumentEntry::queryByMimeType( m_tmpMimeType );
   if ( e.isEmpty() )
   {
-    kdDebug(30003) << "ERROR: Could not create child document" << endl;
+    kdWarning(30003) << "ERROR: Could not create child document with type " << m_tmpMimeType << endl;
     return false;
   }

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

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