Ticket #6873: buttontree.patch

File buttontree.patch, 516 bytes (added by Marc Alban <marcalban@…>, 15 years ago)

patch to fix the of-by-one error in the button tree.

  • mythtv/libs/libmythui/mythuibuttontree.cpp

     
    9797        if ((int)m_currentDepth > route.size())
    9898            m_currentDepth = 1;
    9999
    100         node = route.at(m_currentDepth);
     100        node = route.at(m_currentDepth - 1);
    101101        if (m_currentDepth != m_oldDepth)
    102102            refreshAll = true;
    103103    }