Mercurial > hg > octave-lyh
diff src/graphics.cc @ 9181:86ae7e50dc5d
graphics.cc (array_property::validate): require value to be numeric, not necessarily double
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 05 May 2009 13:32:15 -0400 (2009-05-05) |
parents | 7c02ec148a3c |
children | 1e5c11890f85 |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -776,7 +776,7 @@ bool xok = false; // FIXME -- should we always support []? - if (v.is_empty () && v.is_double_type ()) + if (v.is_empty () && v.is_numeric_type ()) return true; // check value type @@ -788,7 +788,7 @@ xok = true; } else - xok = v.is_double_type (); + xok = v.is_numeric_type (); if (xok) {