changeset 24276:8f26ef2688bc

Do not skip constraints for graphics properties. * graphics.cc (array_property::validate): Do not skip further constraints if array property has no size constraint.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 18 Nov 2017 19:45:23 +0100
parents e9fe31118542
children ca03c9f3fa4b
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Sat Nov 18 11:50:16 2017 +0100
+++ b/libinterp/corefcn/graphics.cc	Sat Nov 18 19:45:23 2017 +0100
@@ -1434,11 +1434,8 @@
   else
     xok = v.isnumeric () || v.is_bool_scalar ();
 
-  if (xok)
-    {
-      if (size_constraints.size () == 0)
-        return true;
-
+  if (xok && size_constraints.size () > 0)
+    {
       dim_vector vdims = v.dims ();
       int vlen = vdims.ndims ();