Mercurial > hg > octave-terminal
changeset 12031:3335e82622ba release-3-2-x
use proper empty value in Cell::index
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 02 Jul 2009 11:32:27 +0200 |
parents | 20a9a8180e33 |
children | b59e304fe00a |
files | src/Cell.cc src/ChangeLog |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Cell.cc +++ b/src/Cell.cc @@ -139,7 +139,7 @@ idx_vector i = idx_arg(0).index_vector (); if (! error_state) - retval = ArrayN<octave_value>::index (i, resize_ok); + retval = ArrayN<octave_value>::index (i, resize_ok, resize_fill_value ()); } break; @@ -152,7 +152,8 @@ idx_vector j = idx_arg(1).index_vector (); if (! error_state) - retval = ArrayN<octave_value>::index (i, j, resize_ok); + retval = ArrayN<octave_value>::index (i, j, resize_ok, + resize_fill_value ()); } } break; @@ -170,7 +171,8 @@ } if (!error_state) - retval = ArrayN<octave_value>::index (iv, resize_ok); + retval = ArrayN<octave_value>::index (iv, resize_ok, + resize_fill_value ()); } break; }