When the Date tag of a game is [Date "????.??.??"] statistics in PlayerDatabase reports "Date: 9999-1"".
--- src/database/playerinfo.cpp (revisione 890) +++ src/database/playerinfo.cpp (copia locale) @@ -162,7 +162,7 @@
QString PlayerInfo::formattedRange() const { - if (m_date[0].year() < 1000) + if (m_date[0].year() < 1000 || m_date[0].year==9999) return QString(); else return QCoreApplication::translate("PlayerInfo", "Date: <b>%1</b><br>").arg(m_date[0].range(m_date[1]));
The workaround has been applied in SVN and the bug is fixed. Thanks, Alessandro.
Log in to post a comment.
here is a workaround:
--- src/database/playerinfo.cpp (revisione 890)
+++ src/database/playerinfo.cpp (copia locale)
@@ -162,7 +162,7 @@
QString PlayerInfo::formattedRange() const
{
- if (m_date[0].year() < 1000)
+ if (m_date[0].year() < 1000 || m_date[0].year==9999)
return QString();
else
return QCoreApplication::translate("PlayerInfo", "Date:
<b>%1</b><br>").arg(m_date[0].range(m_date[1]));
The workaround has been applied in SVN and the bug is fixed.
Thanks, Alessandro.