From 2fbee9c1500a7b3862732bdfa2ad6fef9dcc3092 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 5 Dec 2001 00:06:41 +0000 Subject: Segfault fixes... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Icon.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Fl_File_Icon.cxx') 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 $". // -- cgit v1.2.3