compressors: added mkup_gain reset, fixed smooth_only
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcpopupmenu.C
index 62a2b4030e760bfddbf5a8d51400e1ac98afa01f..a502ee084abd8686e74637a2689adfc8d5346dd1 100644 (file)
@@ -216,13 +216,13 @@ int BC_PopupMenu::draw_face(int dx, int color)
        int available_w = get_w() - calculate_w(margin, 0, use_title);
 
        if( !icon ) {
-               char truncated[BCTEXTLEN];
-               truncate_text(truncated, text, available_w);
+               char *truncated = get_truncated_text(MEDIUMFONT, text, available_w);
                set_font(MEDIUMFONT);
                BC_WindowBase::draw_center_text(
                        dx + available_w/2 + margin + offset,
                        (int)((float)get_h()/2 + get_text_ascent(MEDIUMFONT)/2 - 2) + offset,
                        truncated);
+               delete [] truncated;
        }
 
        if( icon ) {