diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-05 00:06:41 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-05 00:06:41 +0000 |
| commit | 2fbee9c1500a7b3862732bdfa2ad6fef9dcc3092 (patch) | |
| tree | b21d36a0dd1832c6b7eb33f6390e64b791642304 /src/Fl_File_Icon.cxx | |
| parent | fc3999a24ed8c82c5bca139e7fd63f9c0a6b9058 (diff) | |
Segfault fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Icon.cxx')
| -rw-r--r-- | src/Fl_File_Icon.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Fl_File_Icon.cxx b/src/Fl_File_Icon.cxx index 665b98911..adb80311d 100644 --- a/src/Fl_File_Icon.cxx +++ b/src/Fl_File_Icon.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_File_Icon.cxx,v 1.1.2.5 2001/11/17 15:27:15 easysw Exp $" +// "$Id: Fl_File_Icon.cxx,v 1.1.2.6 2001/12/05 00:06:41 easysw Exp $" // // Fl_File_Icon routines. // @@ -461,11 +461,10 @@ Fl_File_Icon::labeltype(const Fl_Label *o, // I - Label data (void)a; icon = (Fl_File_Icon *)(o->value); - - icon->draw(x, y, w, h, (Fl_Color)(o->color)); + if (icon) icon->draw(x, y, w, h, (Fl_Color)(o->color)); } // -// End of "$Id: Fl_File_Icon.cxx,v 1.1.2.5 2001/11/17 15:27:15 easysw Exp $". +// End of "$Id: Fl_File_Icon.cxx,v 1.1.2.6 2001/12/05 00:06:41 easysw Exp $". // |
