mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-06 06:54:29 +00:00
Fixed a small edge case in TransportWindow title line ellipsizing.
This commit is contained in:
parent
fd637ba199
commit
979f4bb358
@ -184,7 +184,7 @@ 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) {
|
||||
if (remaining - len < 3 && it + 1 != tokens.end()) {
|
||||
if (!ellipsized) {
|
||||
value = text::Ellipsize(value, remaining - 3);
|
||||
len = remaining;
|
||||
|
Loading…
Reference in New Issue
Block a user