Mercurial > octave-nkf
diff src/oct-map.cc @ 4563:742993a501b9
[project @ 2003-10-29 06:25:12 by jwe]
author | jwe |
---|---|
date | Wed, 29 Oct 2003 06:25:12 +0000 |
parents | 4699bdb4c362 |
children | fc30061d01da |
line wrap: on
line diff
--- a/src/oct-map.cc Tue Oct 28 21:14:07 2003 +0000 +++ b/src/oct-map.cc Wed Oct 29 06:25:12 2003 +0000 @@ -194,7 +194,11 @@ Octave_map::assign (const std::string& key, const Cell& rhs) { if (empty ()) - map[key] = rhs; + { + map[key] = rhs; + + dimensions = dim_vector (1, 1); + } else { if (dims () == rhs.dims ())