From b770684ab7531675fb588dca2f191d2cc6812f76 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 9 Sep 2009 23:53:47 +0200 Subject: [PATCH] ...or display it only if it's '%', otherwise discard it. --- src/song.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/song.cpp b/src/song.cpp index 56183775..1ffcf176 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -369,8 +369,9 @@ std::string MPD::Song::ParseFormat(std::string::const_iterator &it) const case 't': get = &MPD::Song::GetTitle; break; + case '%': + result += *it; // no break here default: - result += *it; get = 0; break; }