changeset 11970:6f9124253cac release-3-2-x

allow ranges and other matrices in set
author Jaroslav Hajek <highegg@gmail.com>
date Sun, 07 Jun 2009 08:59:08 +0200
parents 3daadc82aee9
children 7a32b095027a
files src/ChangeLog src/graphics.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
+++ b/src/graphics.cc
@@ -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 ();