[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kotext
From: David Faure <faure () kde ! org>
Date: 2006-03-20 13:18:00
Message-ID: 1142860680.585437.10430.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 520594 by dfaure:
Fix warning from QDate when loading a document with text:date
M +4 -1 KoVariable.cpp
--- trunk/koffice/lib/kotext/KoVariable.cpp #520593:520594
@@ -1335,7 +1335,10 @@
if ( localName == "date" ) // current (or fixed) date
{
// Standard form of the date is in text:date-value. Example: \
2004-01-21T10:57:05
- QDateTime dt(QDate::fromString(elem.attributeNS( KoXmlNS::text, \
"date-value", QString::null), Qt::ISODate)); + const QString \
dateValue = elem.attributeNS( KoXmlNS::text, "date-value", QString::null); \
+ QDateTime dt; + if ( !dateValue.isEmpty() ) // avoid QDate \
warning + dt = QDate::fromString(dateValue, Qt::ISODate);
bool fixed = (elem.hasAttributeNS( KoXmlNS::text, "fixed") && \
elem.attributeNS( KoXmlNS::text, "fixed", QString::null)=="true"); if \
(!dt.isValid())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic