Ticket #12971: star-rating.diff

File star-rating.diff, 881 bytes (added by amb@…, 9 years ago)

Patch for bug

  • mythtv/programs/mythfrontend/proglist.cpp

    diff --git a/mythtv/programs/mythfrontend/proglist.cpp b/mythtv/programs/mythfrontend/proglist.cpp
    index a8d519ad42..e9f01509a6 100644
    a b void ProgLister::FillViewList(const QString &view) 
    963963        m_viewTextList.push_back(tr("All"));
    964964        m_viewList.push_back("= 0.0");
    965965        m_viewTextList.push_back(tr("Unrated"));
    966         m_viewList.push_back(QString("= 10.0"));
     966        m_viewList.push_back(QString("= 1.0"));
    967967        m_viewTextList.push_back(tr("%n star(s)", "", 10));
    968968        for (int i = 9; i > 0; i--)
    969969        {
    970             float stars = i / 10.0;
     970            float stars = ( i - 0.5 ) / 10.0;
    971971            m_viewList.push_back(QString(">= %1").arg(stars));
    972972            m_viewTextList.push_back(tr("%n star(s) and above", "", i));
    973973        }