From 31685d283e9b811b61014f820c42807f4effa071 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Oct 2016 21:44:20 -0400 Subject: Fix buggy drawing of embedded widgets --- src/box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/box.c b/src/box.c index d66e4c1..78afe69 100644 --- a/src/box.c +++ b/src/box.c @@ -191,6 +191,8 @@ ganv_box_update(GanvItem* item, int flags) impl->old_coords = impl->coords; coords_i2w(item, &impl->old_coords); + // Call parent class update method, resizing if necessary + GANV_ITEM_CLASS(parent_class)->update(item, flags); ganv_box_normalize(box); // Update world-relative bounding box @@ -199,8 +201,6 @@ ganv_box_update(GanvItem* item, int flags) // Request redraw of new location ganv_box_request_redraw(item, &impl->coords, FALSE); - - GANV_ITEM_CLASS(parent_class)->update(item, flags); } void -- cgit v1.2.1