Menu

#108 Date in PlayerDatabase when tag is [Date "????.??.??] in PGN

closed-fixed
None
4
2009-04-21
2007-12-02
No

When the Date tag of a game is [Date "????.??.??"] statistics in PlayerDatabase reports "Date: 9999-1"".

Discussion

  • Alessandro Gandelli

    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]));

     
  • Bruno Rizzuti

    Bruno Rizzuti - 2009-04-21

    The workaround has been applied in SVN and the bug is fixed.
    Thanks, Alessandro.

     
  • Bruno Rizzuti

    Bruno Rizzuti - 2009-04-21
    • status: open --> closed-fixed
     

Log in to post a comment.