diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2002-09-09 02:04:46 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2002-09-09 02:04:46 +0000 |
| commit | cf16564eda7815f230658a41bbe776f1b6f84879 (patch) | |
| tree | d68c16c79ef42d3031ccf9f0f95022d4697ac5f8 /src/Fl_Tabs.cxx | |
| parent | f97b388e383180dd60d9b2e1ea8a9f8e32e6e32e (diff) | |
Fluid treats any class name for the outer window that does not contain
the word "Window" as a group that needs a 4-element constructor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tabs.cxx')
| -rw-r--r-- | src/Fl_Tabs.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 3d702b3d0..51adcb1be 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.12 2002/09/04 20:33:18 easysw Exp $" +// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.13 2002/09/09 02:04:46 spitzak Exp $" // // Tab widget for the Fast Light Tool Kit (FLTK). // @@ -44,7 +44,7 @@ // Return value is the index of the selected item. int Fl_Tabs::tab_positions(int* p, int* wp) { - int selected = -1; + int selected = 0; Fl_Widget*const* a = array(); int i; p[0] = 0; @@ -78,10 +78,8 @@ int Fl_Tabs::tab_positions(int* p, int* wp) { if (wp[i] > W) wp[i] = W; } // adjust edges according to visiblity: - if (selected >= 0) { - for (i = children(); i > selected; i--) { - p[i] = p[i-1]+wp[i-1]; - } + for (i = children(); i > selected; i--) { + p[i] = p[i-1]+wp[i-1]; } return selected; } @@ -302,5 +300,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.12 2002/09/04 20:33:18 easysw Exp $". +// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.13 2002/09/09 02:04:46 spitzak Exp $". // |
