Skip to content
Snippets Groups Projects
Commit 75368bbb authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

bugfix in opening files in _load

Rev: lib/modules/_Image.pmod/module.pmod:1.2
parent e072510a
No related branches found
No related tags found
No related merge requests found
//! module Image //! module Image
//! $Id: module.pmod,v 1.1 1999/05/28 12:40:11 mirar Exp $ //! $Id: module.pmod,v 1.2 1999/05/28 13:35:02 mirar Exp $
//! method object(Image.Image) load() //! method object(Image.Image) load()
...@@ -24,7 +24,7 @@ mapping _load(void|object|string file) ...@@ -24,7 +24,7 @@ mapping _load(void|object|string file)
if (!file) file=Stdio.stdin; if (!file) file=Stdio.stdin;
else if (stringp(file)) else if (stringp(file))
{ {
object f=Stdio.stdin(); object f=Stdio.File();
if (!f->open(file,"r")) if (!f->open(file,"r"))
error("Image._load: Can't open %O for input.\n",file); error("Image._load: Can't open %O for input.\n",file);
file=f; file=f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment