changeset 7059:8d57f66e35b8

[project @ 2007-10-24 17:16:23 by jwe]
author jwe
date Wed, 24 Oct 2007 17:16:23 +0000
parents ad2aaf824128
children 033918b854a7
files src/ChangeLog src/graphics.cc
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Oct 24 06:15:40 2007 +0000
+++ b/src/ChangeLog	Wed Oct 24 17:16:23 2007 +0000
@@ -1,5 +1,8 @@
 2007-10-24  John W. Eaton  <jwe@octave.org>
 
+	* graphics.cc (root_figure::properties::set_currentfigure):
+	Allow currentfigure to be NaN.
+
 	* pt-idx.cc (tree_index_expression::lvalue): Correctly compute
 	number of elements in lvalue expression when last indexing
 	element is ".".
--- a/src/graphics.cc	Wed Oct 24 06:15:40 2007 +0000
+++ b/src/graphics.cc	Wed Oct 24 17:16:23 2007 +0000
@@ -762,7 +762,7 @@
   if (error_state)
     return;
 
-  if (is_handle (val))
+  if (xisnan (val.value ()) || is_handle (val))
     {
       currentfigure = val;