From 502fa72eb472382cc47964874893085fb88116f5 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Sep 2023 20:56:52 +0200 Subject: #718: Fixes drawing issues for Fl_Tabs Tabs were drawn incorrectly when children's box was not FL_NO_BOX Current solution is cleaned up and always redraws tabs area without leaving breadcrumbs behind --- src/Fl_Group.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Fl_Group.cxx') diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index 7761b1227..4200439b3 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -956,6 +956,7 @@ void Fl_Group::update_child(Fl_Widget& widget) const { void Fl_Group::draw_child(Fl_Widget& widget) const { if (widget.visible() && widget.type() < FL_WINDOW && fl_not_clipped(widget.x(), widget.y(), widget.w(), widget.h())) { + // The following call clears all damage flags and then *sets* FL_DAMAGE_ALL widget.clear_damage(FL_DAMAGE_ALL); widget.draw(); widget.clear_damage(); -- cgit v1.2.3