Albrecht Schlosser <[email protected]> wrote:
>
> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
>
> [STR New]
>
> Link: http://www.fltk.org/str.php?L2062
> Version: 2.0-current
>
>
> I just looked at the source file, and I saw that the provided patch is
> definitely wrong, because H _may_ be negative for tabs at the bottom of
> the TabGroup area. The following slightly modified patch might be okay:
I see.
>
> --- src/TabGroup.cxx.orig 2008-10-11 20:09:06 +0200
> +++ src/TabGroup.cxx 2008-10-11 20:09:44 +0200
> @@ -411,7 +411,7 @@ void TabGroup::draw_tab_background()
> }
>
> void TabGroup::draw_tab(int x1, int x2, int W, int H, Widget* o, int
> what) {
> - if (x2 <= x1) return; // ignore ones shrunk to zero width
> + if (x2 <= x1 || H == 0) return; // ignore ones shrunk to zero width or
> height
> bool drawlabel = true;
> if (x2 < x1+W) {
> if (x2 <= x1+pager_->slope()) drawlabel = false;
>
>
> I'm not sure if it's really the correct patch, however, and therefore I
> recommend setting the label text to an empty label as a workaround, if
> possible.
Your version of the fix looks good to me, but so did the previous one :-)
I will try to implement the suggested workaround.
Thanks,
Johannes
>
>
> Link: http://www.fltk.org/str.php?L2062
> Version: 2.0-current
>
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs