diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-28 18:09:08 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-28 18:09:08 +0000 |
| commit | 6cb1b5c7bda9211da0dfc9abacbb403791b67cee (patch) | |
| tree | 3997e255e1c4040b04d2aa97f2183f1f9aee7ee3 | |
| parent | d211b12af7662a2ea4a9d98aa2136fd23f52dd96 (diff) | |
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
| -rw-r--r-- | src/Fl_PNM_Image.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_PNM_Image.cxx b/src/Fl_PNM_Image.cxx index 059cdb22e..13bcb8e49 100644 --- a/src/Fl_PNM_Image.cxx +++ b/src/Fl_PNM_Image.cxx @@ -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 $". // |
