From 442003e61f413ceabf496e080c29db7e745a13e0 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 26 Aug 2013 23:05:27 -0700 Subject: [PATCH] Mixer: Further tweak plugin name abbreviation. --- mixer/src/Module.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mixer/src/Module.C b/mixer/src/Module.C index 19ff545..7271599 100644 --- a/mixer/src/Module.C +++ b/mixer/src/Module.C @@ -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;