Mercurial > hg > octave-nkf
changeset 2350:905e19d7eef8
[project @ 1996-07-30 21:47:42 by jwe]
author | jwe |
---|---|
date | Tue, 30 Jul 1996 21:47:42 +0000 |
parents | b369227ce3d2 |
children | af7790a4bb19 |
files | liboctave/chMatrix.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/chMatrix.cc +++ b/liboctave/chMatrix.cc @@ -62,12 +62,12 @@ } charMatrix::charMatrix (const string_vector& s) - : MArray2<char> (s.length (), s.max_length ()) + : MArray2<char> (s.length (), s.max_length (), 0) { + int nr = rows (); for (int i = 0; i < nr; i++) { int nc = s[i].length (); - for (int j = 0; j < nc; j++) elem (i, j) = s[i][j]; }