From e6503671eecc2026130fe3544d79d644c1657b4c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 1 Jul 2017 21:17:05 +0200 Subject: replaced some strange access to .base.base with casts of the class to the class needed to access the proper vtable --- src/gui/composite_widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/composite_widget.c') diff --git a/src/gui/composite_widget.c b/src/gui/composite_widget.c index 355e3c6..4a7a607 100644 --- a/src/gui/composite_widget.c +++ b/src/gui/composite_widget.c @@ -28,7 +28,7 @@ void composite_widget_init( composite_widget_t *widget, widget_t *parent, const widget->focused_child = NULL; memset( widget->children, 0, MAX_NOF_WIDGET_CHILDREN * sizeof( widget_t * ) ); - widget->base.vtable = (widget_vtable_t *)&composite_widget_vtable; + ((widget_t *)widget)->vtable = (widget_vtable_t *)&composite_widget_vtable; } void composite_widget_draw( void *obj, graphics_context_t *context ) -- cgit v1.2.3-54-g00ecf