[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kofficecore
From: David Faure <faure () kde ! org>
Date: 2005-10-31 12:54:59
Message-ID: 1130763299.159825.16332.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 476067 by dfaure:
Don't crash when saving in old-xml format!
M +4 -1 koDocumentInfo.cc
--- trunk/koffice/lib/kofficecore/koDocumentInfo.cc #476066:476067
@@ -98,7 +98,7 @@
QDomDocument doc = KoDocument::createDomDocument( "document-info" /*DTD name*/, \
"document-info" /*tag name*/, "1.1" ); QDomElement e = doc.documentElement();
- QStringList lst = pages();
+ const QStringList lst = pages();
QStringList::ConstIterator it = lst.begin();
for( ; it != lst.end(); ++it )
{
@@ -909,6 +909,7 @@
xmlWriter.addTextNode( it.data() );
xmlWriter.endElement();
}
+ return true;
}
bool KoDocumentInfoUserMetadata::loadOasis( const QDomNode& metaDoc )
@@ -933,11 +934,13 @@
// KOffice-1.3 format
bool KoDocumentInfoUserMetadata::load( const QDomElement& e )
{
+ return true;
}
// KOffice-1.3 format
QDomElement KoDocumentInfoUserMetadata::save( QDomDocument& doc )
{
+ return QDomElement();
}
#include <koDocumentInfo.moc>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic