changeset 5575:9b4d9dbe88f7

[project @ 2005-12-13 18:44:20 by jwe]
author jwe
date Tue, 13 Dec 2005 18:44:20 +0000
parents 234751865ca2
children 7e008607a86e
files src/ChangeLog src/oct-stream.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-13  John W. Eaton  <jwe@octave.org>
+
+	* oct-stream.cc (octave_stream_list::do_insert): Check open state
+	of stream in list instead of whether stream state is OK.
+
 2005-12-12  David Bateman  <dbateman@free.fr>
 
 	* OPERATORS/op-struct.cc (transpose): New function.
--- a/src/oct-stream.cc
+++ b/src/oct-stream.cc
@@ -3941,7 +3941,7 @@
     {
       octave_stream tmp = list(i);
 
-      if (! tmp)
+      if (! tmp.is_open ())
 	{
 	  list(i) = os;
 	  stream_number = i;