diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index a29a0bc05..54c20323c 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -1675,7 +1675,7 @@ void CAudioPlayerGui::paintItem(int pos) if (currpos < m_playlist.size()) { char sNr[20]; - sprintf(sNr, "%2d : ", currpos + 1); + sprintf(sNr, (currpos + 1) < 10 ? "%02d: " : "%d: ", currpos + 1); std::string tmp = sNr; getFileInfoToDisplay(tmp, m_playlist[currpos]);