diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-01-29 00:56:19 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-01-29 00:56:19 +0000 |
| commit | 81340639d92f4efbc7775a61f8b602d6916944b0 (patch) | |
| tree | 68523fe822d2931b02d1a399a1e18e52d0d9389d /src | |
| parent | 492b81c24026b44e5a8e377d5e07f234c2bedd62 (diff) | |
Fix tab measurement for image-only labels.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Tabs.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 2e46626b9..96cc0b901 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.7 2002/01/01 15:11:31 easysw Exp $" +// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.8 2002/01/29 00:56:19 easysw Exp $" // // Tab widget for the Fast Light Tool Kit (FLTK). // @@ -51,11 +51,11 @@ int Fl_Tabs::tab_positions(int* p, int* w) { for (i=0; i<children(); i++) { Fl_Widget* o = *a++; if (o->visible()) selected = i; - if (o->label()) { - int wt = 0; int ht = 0; o->measure_label(wt,ht); - w[i] = wt+EXTRASPACE; - } else - w[i] = EXTRASPACE; + + int wt = 0; int ht = 0; + o->measure_label(wt,ht); + + w[i] = wt+EXTRASPACE; p[i+1] = p[i]+w[i]+BORDER; } int r = this->w(); @@ -289,5 +289,5 @@ Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) : } // -// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.7 2002/01/01 15:11:31 easysw Exp $". +// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.8 2002/01/29 00:56:19 easysw Exp $". // |
