X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcpopupmenu.C;fp=cinelerra-5.1%2Fguicast%2Fbcpopupmenu.C;h=a502ee084abd8686e74637a2689adfc8d5346dd1;hp=62a2b4030e760bfddbf5a8d51400e1ac98afa01f;hb=033efab12586e8086014c814a5360f211d228ac3;hpb=0e6cf5b52d1ebce9272270144bcf43df4683507e diff --git a/cinelerra-5.1/guicast/bcpopupmenu.C b/cinelerra-5.1/guicast/bcpopupmenu.C index 62a2b403..a502ee08 100644 --- a/cinelerra-5.1/guicast/bcpopupmenu.C +++ b/cinelerra-5.1/guicast/bcpopupmenu.C @@ -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 ) {