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

List:       kde-commits
Subject:    koffice/libs/main
From:       Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date:       2010-09-08 8:05:08
Message-ID: 20100908080508.4B5E7AC888 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1172917 by mkruisselbrink:

I think it is a pretty good guess that if a mimetype starts with \
application/vnd.oasis.opendocument it is an oasis opendocument file; this makes it \
possible to call saveNativeFormat even when the .desktop file for the part is not \
arround and still get odf output.

 M  +1 -1      KoDocument.cpp  


--- trunk/koffice/libs/main/KoDocument.cpp #1172916:1172917
@@ -855,7 +855,7 @@
     // OLD: QCString mimeType = oasis ? nativeOasisMimeType() : \
nativeFormatMimeType();  QByteArray mimeType = d->outputMimeType;
     QByteArray nativeOasisMime = nativeOasisMimeType();
-    bool oasis = !mimeType.isEmpty() && (mimeType == nativeOasisMime || mimeType == \
nativeOasisMime + "-template"); +    bool oasis = !mimeType.isEmpty() && (mimeType == \
nativeOasisMime || mimeType == nativeOasisMime + "-template" || \
mimeType.startsWith("application/vnd.oasis.opendocument"));  
     // TODO: use std::auto_ptr or create store on stack [needs API fixing],
     // to remove all the 'delete store' in all the branches


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

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