From 979f4bb358d4e3c56c22d485b345db064a956bd1 Mon Sep 17 00:00:00 2001 From: casey Date: Sun, 17 Jul 2016 20:47:03 -0700 Subject: [PATCH] Fixed a small edge case in TransportWindow title line ellipsizing. --- src/musikbox/app/window/TransportWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/musikbox/app/window/TransportWindow.cpp b/src/musikbox/app/window/TransportWindow.cpp index 127955c18..7010eab4b 100755 --- a/src/musikbox/app/window/TransportWindow.cpp +++ b/src/musikbox/app/window/TransportWindow.cpp @@ -183,8 +183,8 @@ size_t writePlayingFormat( } /* if we're not at the last token, but there's not enough space - to show the next token, ellipsize now and bail out of the loop */ - if (remaining - len < 3) { + to show the next token, ellipsize now and bail out of the loop */ + if (remaining - len < 3 && it + 1 != tokens.end()) { if (!ellipsized) { value = text::Ellipsize(value, remaining - 3); len = remaining;