Mixer: Further tweak plugin name abbreviation.

This commit is contained in:
Jonathan Moore Liles 2013-08-26 23:05:27 -07:00
parent a1336880b5
commit 442003e61f
1 changed files with 5 additions and 3 deletions

View File

@ -666,11 +666,13 @@ Module::draw_label ( int tx, int ty, int tw, int th )
fl_font( FL_HELVETICA, labelsize() );
char *di = index( lab, '-' );
char *di = strstr( lab, " -" );
if ( ! di )
strstr( lab, " " );
if ( di )
{
*di = '\0';
}
int LW = fl_width( lab );
char *s = NULL;