changeset 20066:c66909c234e6

Allow bool_scalar types for graphics array properties (Bug #44699) * libinterp/corefcn/graphics.cc (array_property::validate): set xok to true also if is bool_scalar
author John Donoghue
date Mon, 06 Apr 2015 10:29:20 -0400
parents 91e1da1d1918
children 68aec55f5eb6
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Mon Apr 06 04:18:47 2015 -0700
+++ b/libinterp/corefcn/graphics.cc	Mon Apr 06 10:29:20 2015 -0400
@@ -1333,7 +1333,7 @@
         xok = false;
     }
   else
-    xok = v.is_numeric_type ();
+    xok = v.is_numeric_type () || v.is_bool_scalar ();
 
   if (xok)
     {