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 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 ();