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
1 changed files with 7 additions and 2 deletions

View File

@ -1125,9 +1125,14 @@ MixerStrip::route_group_changed (void *ignored)
ENSURE_GUI_THREAD(bind (mem_fun(*this, &MixerStrip::route_group_changed), 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: