summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-09-22 00:00:21 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-09-22 00:01:08 +0200
commit43a6b81820d669b02fcc09e488199a685440d8c5 (patch)
tree86e4e723c63ceb591f0ecfeffb9d4ac2a1635c9e /src
parent1acaaa4064bab5b36a8f414d3e98df80534d4d5c (diff)
format: shorten date by simple truncation
Diffstat (limited to 'src')
-rw-r--r--src/format_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format_impl.h b/src/format_impl.h
index ec9ad973..1f138b79 100644
--- a/src/format_impl.h
+++ b/src/format_impl.h
@@ -124,8 +124,8 @@ struct Printer: boost::static_visitor<Result>
{
if (st.delimiter() > 0)
{
- // shorten length by chopping off the tail
- if (st.function() == &MPD::Song::getLength)
+ // shorten date/length by simple truncation
+ if (st.function() == &MPD::Song::getDate || st.function() == &MPD::Song::getLength)
tags.resize(st.delimiter());
else
tags = wideShorten(tags, st.delimiter());