[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kofficecore
From: Fredrik Edemar <f_edemar () linux ! se>
Date: 2006-09-11 22:02:09
Message-ID: 1158012129.182606.7192.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 583275 by fedemar:
fix memory problem, the elements were corrupted
M +4 -2 KoDocumentInfo.cpp
--- trunk/koffice/libs/kofficecore/KoDocumentInfo.cpp #583274:583275
@@ -275,13 +275,15 @@
KoDocument* doc = dynamic_cast< KoDocument* >( parent() );
setAboutInfo( "title", doc->url().fileName() );
}
- xmlWriter.startElement( QString( "dc:" + tag ).toLatin1().constData() );
+ QByteArray elementName( QString( "dc:" + tag ).toLatin1().constData() );
+ xmlWriter.startElement( elementName );
xmlWriter.addTextNode( aboutInfo( tag ) );
xmlWriter.endElement();
}
else
{
- xmlWriter.startElement( QString( "meta:" + tag ).toLatin1().constData() );
+ QByteArray elementName( QString( "meta:" + tag).toLatin1().constData() );
+ xmlWriter.startElement( elementName );
xmlWriter.addTextNode( aboutInfo( tag ) );
xmlWriter.endElement();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic