|
|
@ -992,7 +992,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
|
|
|
|
TQCString mimeType = d->outputMimeType;
|
|
|
|
TQCString mimeType = d->outputMimeType;
|
|
|
|
TQCString nativeOasisMime = nativeOasisMimeType();
|
|
|
|
TQCString nativeOasisMime = nativeOasisMimeType();
|
|
|
|
bool oasis = !mimeType.isEmpty() && ( mimeType == nativeOasisMime || mimeType == nativeOasisMime + "-template" );
|
|
|
|
bool oasis = !mimeType.isEmpty() && ( mimeType == nativeOasisMime || mimeType == nativeOasisMime + "-template" );
|
|
|
|
// TODO: use std::auto_ptr or create store on stack [needs API fixing],
|
|
|
|
// TODO: use std::unique_ptr or create store on stack [needs API fixing],
|
|
|
|
// to remove all the 'delete store' in all the branches
|
|
|
|
// to remove all the 'delete store' in all the branches
|
|
|
|
KoStore* store = KoStore::createStore( file, KoStore::Write, mimeType, backend );
|
|
|
|
KoStore* store = KoStore::createStore( file, KoStore::Write, mimeType, backend );
|
|
|
|
if ( store->bad() )
|
|
|
|
if ( store->bad() )
|
|
|
|