From 0df5781246aa6b65848185ad29a9ea61aa3bcc8d Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 31 Jan 2020 23:15:23 +0100 Subject: [PATCH] - audioplayer: change format of title number Signed-off-by: Thilo Graf --- src/gui/audioplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);