From 6f1b6ad15fca162623968c40172e5542130723e2 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 17 Feb 2022 00:43:25 +0100 Subject: [PATCH] Update raygui.h --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index d23d2d4..56ab0e8 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1444,7 +1444,7 @@ void GuiPanel(Rectangle bounds, const char *text) // Text will be drawn as a header bar (if provided) Rectangle statusBar = { bounds.x, bounds.y, bounds.width, (float)RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT }; - if (bounds.height < RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f) bounds.height = RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f; + if ((text != NULL) && (bounds.height < RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f)) bounds.height = RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT*2.0f; if (text != NULL) {