Mercurial > octave-nkf
changeset 9311:868fbeb2e365
allow ranges and other matrices in set
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sun, 07 Jun 2009 08:59:08 +0200 |
parents | 256c0db275b6 |
children | 0f7480d07f6a |
files | src/ChangeLog src/graphics.cc |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sun Jun 07 08:15:31 2009 +0200 +++ b/src/ChangeLog Sun Jun 07 08:59:08 2009 +0200 @@ -1,3 +1,7 @@ +2009-06-07 Jaroslav Hajek <highegg@gmail.com> + + * graphics.cc (color_property::do_set): Allow a wider range of types. + 2009-06-07 Jaroslav Hajek <highegg@gmail.com> * DLD-FUNCTIONS/find.cc (Ffind): Fix docs. Improve second argument
--- a/src/graphics.cc Sun Jun 07 08:15:31 2009 +0200 +++ b/src/graphics.cc Sun Jun 07 08:59:08 2009 +0200 @@ -709,7 +709,7 @@ error ("invalid value for color property \"%s\"", get_name ().c_str ()); } - else if (val.is_real_matrix ()) + else if (val.is_numeric_type ()) { Matrix m = val.matrix_value ();