changeset 8137:177117c7e375

fix off-by-one error in previous change
author John W. Eaton <jwe@octave.org>
date Tue, 23 Sep 2008 17:47:59 -0400
parents 2b2ca62f8ab6
children 877faa7aa9b2
files src/pt-arg-list.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/pt-arg-list.cc	Tue Sep 23 13:49:14 2008 -0400
+++ b/src/pt-arg-list.cc	Tue Sep 23 17:47:59 2008 -0400
@@ -109,7 +109,7 @@
 	  octave_value_list args;
 
 	  args(2) = num_indices;
-	  args(1) = index_position;
+	  args(1) = index_position + 1;
 	  args(0) = *indexed_object;
 
 	  std::string class_name = indexed_object->class_name ();