changeset 13698:276bb0dd9d24

patch: ensure facevertexcdata has correct shape * __patch__.m (setvertexdata): If c is a 2-d matrix, smash it to a vector after transposing. * patch.m: New test.
author John W. Eaton <jwe@octave.org>
date Thu, 13 Oct 2011 13:38:19 -0400
parents 0f8ff98929b2
children dd9b32af0a01
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	Thu Oct 13 16:46:28 2011 +0100
+++ b/scripts/plot/private/__patch__.m	Thu Oct 13 13:38:19 2011 -0400
@@ -322,7 +322,7 @@
   elseif (isvector (c))
     fvc = c(:);
   else
-    fvc = c.';
+    fvc = c.'(:);
   endif
 
   args = {"faces", faces, "vertices", vert, "facevertexcdata", fvc, args{:}};