mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
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:
@@ -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.
|
// 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
|
maxval; // Maximum pixel value
|
||||||
|
|
||||||
|
|
||||||
|
if ((fp = fopen(name, "rb")) == NULL) return;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Read the file header in the format:
|
// 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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user