fixed toggle button

This commit is contained in:
vurtun 2015-05-22 15:26:17 +02:00
parent 243bc00f71
commit 2a5c6fe5f4

2
gui.c
View File

@ -2041,7 +2041,7 @@ gui_panel_button_toggle(struct gui_panel_layout *layout, const char *str, gui_bo
const struct gui_config *config;
ASSERT(str);
if (!gui_panel_button(&button, &bounds, layout))
return gui_false;
return value;
config = layout->config;
if (!value) {