mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-04 08:42:07 +00:00
Fixed a small edge case in TransportWindow title line ellipsizing.
This commit is contained in:
parent
fd637ba199
commit
979f4bb358
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user