1
1

(groupbox_new): ignore empty string as title.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2012-09-20 12:48:43 +04:00
родитель e009cd9ea9
Коммит 8623039fe8

Просмотреть файл

@ -108,8 +108,9 @@ groupbox_new (int y, int x, int height, int width, const char *title)
widget_want_cursor (w, FALSE);
widget_want_hotkey (w, FALSE);
g->title = NULL;
/* Strip existing spaces, add one space before and after the title */
if (title != NULL)
if (title != NULL && *title != '\0')
{
char *t;