fixed cpp errors

This commit is contained in:
vurtun 2015-07-20 11:23:01 +02:00
parent edf97d0cdf
commit 3803c76f46
1 changed files with 2 additions and 2 deletions

4
gui.c
View File

@ -3268,8 +3268,8 @@ gui_panel_widget(struct gui_rect *bounds, struct gui_panel_layout *layout)
GUI_ASSERT(layout);
GUI_ASSERT(layout->config);
GUI_ASSERT(layout->buffer);
if (!layout || !layout->config || !layout->buffer) return gui_false;
if (!layout->valid) return gui_false;
if (!layout || !layout->config || !layout->buffer) return GUI_INVALID;
if (!layout->valid) return GUI_INVALID;
/* allocated space for the panel and check if the widget needs to be updated */
gui_panel_alloc_space(bounds, layout);