changeset 23431:39045e50ea45

Fix regression with true color unint8 images (bug #50797) * graphics.cc (array_property::validate): use more generic NDArray type for constraints checking
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sun, 23 Apr 2017 22:01:49 +0200
parents 32d532b8e7d0
children e35a5c1233d0
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))
         {