From: Dana Jansens Date: Thu, 10 May 2007 05:27:43 +0000 (+0000) Subject: checking string length with the wrong texture X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6194acb2710554a95090811eb6a4897fb7ee1a60;p=chaz%2Fopenbox checking string length with the wrong texture --- diff --git a/openbox/menuframe.c b/openbox/menuframe.c index a2760aa1..313bd6cf 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -728,7 +728,7 @@ void menu_frame_render(ObMenuFrame *self) if (e->entry->data.separator.label != NULL) { e->a_text_title->texture[0].data.text.string = e->entry->data.separator.label; - tw = RrMinWidth(text_a); + tw = RrMinWidth(e->a_text_title); tw = MIN(tw, MAX_MENU_WIDTH); th = ob_rr_theme->menu_title_height + (ob_rr_theme->mbwidth - PADDING) *2;