13
0

Bit of a hack: limit mix group names to 5 chars within the strip to stop them getting too wide.

git-svn-id: svn://localhost/ardour2/branches/3.0@5250 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-22 22:31:43 +00:00
parent 0eadbc9396
commit 7d64d08fab

View File

@ -1127,7 +1127,12 @@ MixerStrip::route_group_changed (void *ignored)
RouteGroup *rg = _route->route_group();
if (rg) {
group_label.set_text (rg->name());
/* XXX: this needs a better algorithm */
string truncated = rg->name ();
if (truncated.length () > 5) {
truncated = truncated.substr (0, 5);
}
group_label.set_text (truncated);
} else {
switch (_width) {
case Wide: