diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-05-11 09:39:31 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-05-11 09:39:31 +0000 |
| commit | 4e66f937698fd0792c17db2085d99ee5985c81ff (patch) | |
| tree | e74c8ad3ae56b08a3c2e6d7d5eca596ddba38562 /src/Fl_Browser.cxx | |
| parent | d4bcbf5be337164e631c75d50b397992d794166f (diff) | |
Missing header files and FL_EXTERNs that prevented DLL's from compiling
under BCC.
Fluid will output A::B::C names for nested classes.
Fl_Browser::lineposition(n, BOTTOM) will align the bottom of the line
rather than the top with the bottom of the browser.
The connect program does wait() so that it does not leave a zombie for
every one of your ppp connections.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Browser.cxx')
| -rw-r--r-- | src/Fl_Browser.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx index f6b383629..4f734275f 100644 --- a/src/Fl_Browser.cxx +++ b/src/Fl_Browser.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Browser.cxx,v 1.9.2.5 1999/05/01 15:08:21 mike Exp $" +// "$Id: Fl_Browser.cxx,v 1.9.2.6 1999/05/11 09:39:29 bill Exp $" // // Browser widget for the Fast Light Tool Kit (FLTK). // @@ -394,9 +394,12 @@ void Fl_Browser::lineposition(int line, Fl_Line_Position pos) { if (line<1) line = 1; if (line>lines) line = lines; int p = 0; - for (FL_BLINE* l=first; l&& line>1; l = l->next) { + + FL_BLINE* l; + for (l=first; l && line>1; l = l->next) { line--; p += item_height(l); } + if (l && (pos == BOTTOM)) p += item_height (l); int final = p, X, Y, W, H; bbox(X, Y, W, H); @@ -485,5 +488,5 @@ int Fl_Browser::value() const { } // -// End of "$Id: Fl_Browser.cxx,v 1.9.2.5 1999/05/01 15:08:21 mike Exp $". +// End of "$Id: Fl_Browser.cxx,v 1.9.2.6 1999/05/11 09:39:29 bill Exp $". // |
