From 9e6b0d5a8d0226232802bdece77665b167f98dae Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 15:04:30 +0000 Subject: [PATCH] update children first --- otk/widget.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otk/widget.cc b/otk/widget.cc index 9708977d..c09ac486 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -404,16 +404,16 @@ void Widget::adjustVert(void) void Widget::update() { + WidgetList::iterator it = _children.begin(), end = _children.end(); + for (; it != end; ++it) + (*it)->update(); + if (_dirty) { adjust(); render(); XClearWindow(**display, _window); } - WidgetList::iterator it = _children.begin(), end = _children.end(); - for (; it != end; ++it) - (*it)->update(); - _dirty = false; } -- 2.45.2