# HG changeset patch # User Pantxo Diribarne # Date 1492977709 -7200 # Node ID 39045e50ea450eda7253c75725b20c6ee721c890 # Parent 32d532b8e7d0ca6fd194539f19209d66546698d9 Fix regression with true color unint8 images (bug #50797) * graphics.cc (array_property::validate): use more generic NDArray type for constraints checking diff -r 32d532b8e7d0 -r 39045e50ea45 libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Sun Apr 23 21:25:45 2017 -0700 +++ b/libinterp/corefcn/graphics.cc Sun Apr 23 22:01:49 2017 +0200 @@ -1463,7 +1463,7 @@ if (xok) { - Matrix v_mat = v.matrix_value (); + NDArray v_mat = v.array_value (); // Check min and max if (! octave::math::isnan (minval.first)) {