diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Button.cxx | 6 | ||||
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 10 | ||||
| -rw-r--r-- | src/Fl_Window_hotspot.cxx | 6 | ||||
| -rw-r--r-- | src/fl_boxtype.cxx | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 0cbf86453..424ed4b6a 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Button.cxx,v 1.4.2.6.2.19 2002/11/11 20:22:21 easysw Exp $" +// "$Id: Fl_Button.cxx,v 1.4.2.6.2.20 2003/01/28 20:42:08 easysw Exp $" // // Button widget for the Fast Light Tool Kit (FLTK). // @@ -124,7 +124,7 @@ int Fl_Button::handle(int event) { // background... int X = x() > 0 ? x() - 1 : 0; int Y = y() > 0 ? y() - 1 : 0; - window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); + if (window()) window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); } else redraw(); return 1; } else return 0; @@ -156,5 +156,5 @@ Fl_Button::Fl_Button(int X, int Y, int W, int H, const char *l) } // -// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.19 2002/11/11 20:22:21 easysw Exp $". +// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.20 2003/01/28 20:42:08 easysw Exp $". // diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index cbd5cad28..a10ac7304 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.28 2002/11/20 15:49:24 easysw Exp $" +// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.29 2003/01/28 20:42:11 easysw Exp $" // // More Fl_File_Chooser routines. // @@ -122,7 +122,7 @@ Fl_File_Chooser::count() // printf("Fl_File_Chooser::count(): filename=\"%s\"\n", filename); - if (filename == NULL || filename[0] == '\0') + if (!filename || !filename[0]) return (0); // Is the file name just the current directory? @@ -457,7 +457,7 @@ Fl_File_Chooser::fileNameCB() // Get the filename from the text field... filename = (char *)fileName->value(); - if (filename == NULL || filename[0] == '\0') { + if (!filename || !filename[0]) { okButton->deactivate(); return; } @@ -1004,7 +1004,7 @@ Fl_File_Chooser::value(int f) // I - File number if (!(type_ & MULTI)) { name = fileName->value(); - if (name[0] == '\0') return NULL; + if (!name || !name[0]) return NULL; else if (fl_filename_isdir(name)) { if (type_ & DIRECTORY) { // Strip trailing slash, if any... @@ -1159,5 +1159,5 @@ unquote_pathname(char *dst, // O - Destination string // -// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.28 2002/11/20 15:49:24 easysw Exp $". +// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.29 2003/01/28 20:42:11 easysw Exp $". // diff --git a/src/Fl_Window_hotspot.cxx b/src/Fl_Window_hotspot.cxx index 5afcacb3b..12fa6a683 100644 --- a/src/Fl_Window_hotspot.cxx +++ b/src/Fl_Window_hotspot.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.3 2002/04/15 20:30:06 easysw Exp $" +// "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.4 2003/01/28 20:42:13 easysw Exp $" // // Common hotspot routines for the Fast Light Tool Kit (FLTK). // @@ -71,7 +71,7 @@ void Fl_Window::hotspot(int X, int Y, int offscreen) { void Fl_Window::hotspot(const Fl_Widget *o, int offscreen) { int X = o->w()/2; int Y = o->h()/2; - while (o != this) { + while (o != this && o) { X += o->x(); Y += o->y(); o = o->window(); } @@ -80,5 +80,5 @@ void Fl_Window::hotspot(const Fl_Widget *o, int offscreen) { // -// End of "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.3 2002/04/15 20:30:06 easysw Exp $". +// End of "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.4 2003/01/28 20:42:13 easysw Exp $". // diff --git a/src/fl_boxtype.cxx b/src/fl_boxtype.cxx index 98c8afcde..dc71ca0f3 100644 --- a/src/fl_boxtype.cxx +++ b/src/fl_boxtype.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_boxtype.cxx,v 1.8.2.4.2.10 2002/08/09 03:17:30 easysw Exp $" +// "$Id: fl_boxtype.cxx,v 1.8.2.4.2.11 2003/01/28 20:42:14 easysw Exp $" // // Box drawing code for the Fast Light Tool Kit (FLTK). // @@ -267,7 +267,7 @@ void Fl::set_boxtype(Fl_Boxtype t, Fl_Boxtype f) { } void fl_draw_box(Fl_Boxtype t, int x, int y, int w, int h, Fl_Color c) { - if (t) fl_box_table[t].f(x,y,w,h,c); + if (t && fl_box_table[t].f) fl_box_table[t].f(x,y,w,h,c); } //extern Fl_Widget *fl_boxcheat; // hack set by Fl_Window.cxx @@ -295,5 +295,5 @@ const { } // -// End of "$Id: fl_boxtype.cxx,v 1.8.2.4.2.10 2002/08/09 03:17:30 easysw Exp $". +// End of "$Id: fl_boxtype.cxx,v 1.8.2.4.2.11 2003/01/28 20:42:14 easysw Exp $". // |
