changeset 13256:41c2f4633a62

Properly process 'cdata' property for patches (Bug #34417). * __patch__.m: Guarantee that 'cdata' and 'facevertexcdata' are transposes of each other.
author Rik <rik@octave.org>
date Wed, 28 Sep 2011 09:14:45 -0700
parents dd3c5325039c
children e052c36bf14f
files scripts/plot/private/__patch__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/private/__patch__.m
+++ b/scripts/plot/private/__patch__.m
@@ -289,7 +289,7 @@
   if (ndims (c) == 3)
     fvc = reshape (c, size (c, 1) * size (c, 2), size(c, 3));
   else
-    fvc = c(:).';
+    fvc = c.';
   endif
 
   args = {"faces", faces, "vertices", vert, "facevertexcdata", fvc, args{:}};