mirror of https://github.com/fltk/fltk
Wasn't calling fopen() when loading PNM files... :(
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d211b12af7
commit
6cb1b5c7bd
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// "$Id: Fl_PNM_Image.cxx,v 1.1.2.1 2001/11/24 18:07:57 easysw Exp $"
|
||||
// "$Id: Fl_PNM_Image.cxx,v 1.1.2.2 2001/11/28 18:09:08 easysw Exp $"
|
||||
//
|
||||
// Fl_PNM_Image routines.
|
||||
//
|
||||
|
@ -57,6 +57,8 @@ Fl_PNM_Image::Fl_PNM_Image(const char *name) // I - File to read
|
|||
maxval; // Maximum pixel value
|
||||
|
||||
|
||||
if ((fp = fopen(name, "rb")) == NULL) return;
|
||||
|
||||
//
|
||||
// Read the file header in the format:
|
||||
//
|
||||
|
@ -157,5 +159,5 @@ Fl_PNM_Image::Fl_PNM_Image(const char *name) // I - File to read
|
|||
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_PNM_Image.cxx,v 1.1.2.1 2001/11/24 18:07:57 easysw Exp $".
|
||||
// End of "$Id: Fl_PNM_Image.cxx,v 1.1.2.2 2001/11/28 18:09:08 easysw Exp $".
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue