changeset 19141:5bfedd39cc77

Fix indexing in patch if x/y/zdata are row vectors (bug #42822) * graphics.cc (patch::properties::update_fvc): Get column vectors from x/y/zdata if xdata is a row vector.
author Andreas Weber <andy.weber.aw@gmail.com>
date Tue, 22 Jul 2014 12:05:28 +0200
parents ed3cb9f81145
children c66029adf853
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc
+++ b/libinterp/corefcn/graphics.cc
@@ -7873,7 +7873,9 @@
     {
       nr = nc;
       nc = 1;
-      xd = xd.transpose ();
+      xd = xd.as_column ();
+      yd = yd.as_column ();
+      zd = zd.as_column ();
     }
 
   dv(0) = nr * nc;