changeset 976:d14bddcad83d

add workaround for fltk bug 2062
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 04 Mar 2009 19:31:07 +0100
parents 4355018cc2af
children 80e2f488a523
files src/uicmd.cc
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/uicmd.cc	Mon Mar 02 14:31:23 2009 -0300
+++ b/src/uicmd.cc	Wed Mar 04 19:31:07 2009 +0100
@@ -93,8 +93,13 @@
          //fltk::setfont(fltk::getfont()->bold(), fltk::getsize());
          r.h(r.h()-2);
          drawtext("X", r, ALIGN_CENTER);
+         return false;
+      } else {
+         // By returning true we avoid a call to TabGroup::draw_tab()
+         // in TabGroup::draw() in case we don't show the tabs.
+         // This is a workaround for http://fltk.org/str.php?L2062
+         return true;
       }
-      return false;
    }
 
    void btn_highlight(bool flag) {