changeset 8173:7d1a8ad7d841

pt-arg-list.cc (tree_argument_list::convert_to_const_vector): don't insert undefined elements in return list
author John W. Eaton <jwe@octave.org>
date Thu, 02 Oct 2008 15:00:18 -0400
parents 9ba45b125ee8
children ea9b5f31bfac
files src/ChangeLog src/pt-arg-list.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Oct 02 13:25:57 2008 -0400
+++ b/src/ChangeLog	Thu Oct 02 15:00:18 2008 -0400
@@ -1,3 +1,8 @@
+2008-10-02  John W. Eaton  <jwe@octave.org>
+
+	* pt-arg-list.cc (tree_argument_list::convert_to_const_vector):
+	Don't insert undefined elements in return list.
+
 2008-09-30  Jaroslav Hajek  <highegg@gmail.com>
 
 	* ov-str-mat.h (octave-char-matrix-str::assign): Remove declaration.
--- a/src/pt-arg-list.cc	Thu Oct 02 13:25:57 2008 -0400
+++ b/src/pt-arg-list.cc	Thu Oct 02 15:00:18 2008 -0400
@@ -214,7 +214,7 @@
 		  for (int i = 0; i < n; i++)
 		    args(j++) = tl(i);
 		}
-	      else
+	      else if (tmp.is_defined ())
 		args(j++) = tmp;
 	    }
 	}