# HG changeset patch # User Markus Mützel # Date 1511030723 -3600 # Node ID 8f26ef2688bc75bc362582846e65dcb2259b9ef0 # Parent e9fe311185427391240bbf2f884805abc55a50db Do not skip constraints for graphics properties. * graphics.cc (array_property::validate): Do not skip further constraints if array property has no size constraint. diff -r e9fe31118542 -r 8f26ef2688bc libinterp/corefcn/graphics.cc --- 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 ();