diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-16 20:25:25 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-16 20:25:25 +0000 |
| commit | f986d0df7eca7903a5f0de4db8932e0704caf4f0 (patch) | |
| tree | 99dc123c81357b4b6aee75f9177d9f5870c365f1 | |
| parent | ea60692bf5e0dcf30b9fac3a777f115c059133ab (diff) | |
Fix two uninitialized vars...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Help_View.cxx | 5 | ||||
| -rw-r--r-- | src/fl_draw.cxx | 5 |
3 files changed, 8 insertions, 4 deletions
@@ -18,6 +18,8 @@ CHANGES IN FLTK 1.1.0b4 - Fl_Help_View didn't support A elements with both a NAME and HREF attribute - the HREF was ignored. + - Miscellaneous compile warning fixes. + CHANGES IN FLTK 1.1.0b3 diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 748e7f213..93c79396a 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Help_View.cxx,v 1.1.2.4 2001/10/02 16:54:45 easysw Exp $" +// "$Id: Fl_Help_View.cxx,v 1.1.2.5 2001/10/16 20:25:24 easysw Exp $" // // Fl_Help_View widget routines. // @@ -2073,6 +2073,7 @@ Fl_Help_View::format_table(int *table_width, // O - Total table width colspan = 0; max_width = 0; pre = 0; + needspace = 0; // Scan the table... for (ptr = table, column = -1, width = 0, s = buf, incell = 0; *ptr;) @@ -3579,5 +3580,5 @@ scrollbar_callback(Fl_Widget *s, void *) // -// End of "$Id: Fl_Help_View.cxx,v 1.1.2.4 2001/10/02 16:54:45 easysw Exp $". +// End of "$Id: Fl_Help_View.cxx,v 1.1.2.5 2001/10/16 20:25:24 easysw Exp $". // diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index f727711e9..14eee12f1 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_draw.cxx,v 1.6.2.4.2.4 2001/09/02 11:23:27 easysw Exp $" +// "$Id: fl_draw.cxx,v 1.6.2.4.2.5 2001/10/16 20:25:25 easysw Exp $" // // Label drawing code for the Fast Light Tool Kit (FLTK). // @@ -196,6 +196,7 @@ void fl_draw( for (p=str; ; ypos += height) { if (lines>1) e = expand(p, buf, w - symtotal, buflen, width, align&FL_ALIGN_WRAP); + else e = ""; if (width > symoffset) symoffset = (int)(width + 0.5); @@ -322,5 +323,5 @@ void fl_measure(const char* str, int& w, int& h) { } // -// End of "$Id: fl_draw.cxx,v 1.6.2.4.2.4 2001/09/02 11:23:27 easysw Exp $". +// End of "$Id: fl_draw.cxx,v 1.6.2.4.2.5 2001/10/16 20:25:25 easysw Exp $". // |
