Mercurial > hg > octave-terminal
changeset 12155:7e856c31ffae
fix octave_map (const string_vector&) constructor
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 25 Jan 2011 02:03:21 -0500 |
parents | 22c99c8cfcb6 |
children | 1eba19d57fa4 |
files | src/ChangeLog src/oct-map.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-01-25 John W. Eaton <jwe@octave.org> + + * oct-map.h (octave_map::octave_map (const string_vector&)): + Initialize xvals elements to 1x1 Cells. Bug #32222. + 2011-01-24 Pascal Dupuis <Pascal.Dupuis@worldonline.be> * ov-base-mat.h (class octave_base_matrix): Disallow assignment.
--- a/src/oct-map.h +++ b/src/oct-map.h @@ -272,7 +272,7 @@ octave_map (const dim_vector& dv) : xkeys (), xvals (), dimensions (dv) { } octave_map (const string_vector& k) - : xkeys (k), xvals (k.length ()), dimensions (1, 1) { } + : xkeys (k), xvals (k.length (), Cell (1, 1)), dimensions (1, 1) { } octave_map (const dim_vector& dv, const string_vector& k) : xkeys (k), xvals (k.length (), Cell (dv)), dimensions (dv) { }