diff options
-rw-r--r-- | src/xmlpatterns/data/qduration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpatterns/data/qduration.cpp b/src/xmlpatterns/data/qduration.cpp index f4dc4c2..d6a3537 100644 --- a/src/xmlpatterns/data/qduration.cpp +++ b/src/xmlpatterns/data/qduration.cpp @@ -164,7 +164,7 @@ QString Duration::stringValue() const retval.append(QLatin1Char('D')); } - if(!m_hours && !m_minutes && !m_seconds && !m_seconds) + if(!m_hours && !m_minutes && !m_seconds && !m_mseconds) { if(!m_years && !m_months && !m_days) return QLatin1String("PT0S"); @@ -186,7 +186,7 @@ QString Duration::stringValue() const retval.append(QLatin1Char('M')); } - if(m_seconds || m_seconds) + if(m_seconds || m_mseconds) { retval.append(QString::number(m_seconds)); |