changeset 27924:733d056eb867

Fix patch (x,y,c) when c is a 3-element vector, but not an RGB specification (bug #56579) * __patch__.m: Change test from "isvector (c) && numel (c) == 3" to "isrow (c) && numel (c) == 3" which is proper test for RGB specification.
author Rik <rik@octave.org>
date Thu, 09 Jan 2020 14:04:48 -0800
parents bd51beb6205e
children cf45351fc7fa
files scripts/plot/draw/private/__patch__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__patch__.m	Wed Jan 08 11:59:41 2020 -0500
+++ b/scripts/plot/draw/private/__patch__.m	Thu Jan 09 14:04:48 2020 -0800
@@ -117,7 +117,7 @@
           else
             error ("patch: color data C must be numeric");
           endif
-        elseif (isvector (c) && numel (c) == 3)
+        elseif (isrow (c) && numel (c) == 3)
           args{7} = "facecolor";
           args{8} = c;
           args{9} = "cdata";