diff src/graphics.cc @ 10301:9e0ec19df4bc

commit accidentally omitted parts of previous change
author John W. Eaton <jwe@octave.org>
date Wed, 10 Feb 2010 13:57:23 -0500
parents 4b124317dc38
children 57a59eae83cc
line wrap: on
line diff
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -2015,6 +2015,10 @@
 {
   const Matrix new_kids = val.matrix_value ();
 
+  octave_idx_type nel = new_kids.numel ();
+
+  const Matrix new_kids_column = new_kids.reshape (dim_vector (nel, 1));
+
   bool ok = true;
 
   if (! error_state)
@@ -2024,7 +2028,7 @@
       if (visible_kids.numel () == new_kids.numel ())
 	{
 	  Matrix t1 = visible_kids.sort ();
-	  Matrix t2 = new_kids.sort ();
+	  Matrix t2 = new_kids_column.sort ();
 
 	  if (t1 != t2)
 	    ok = false;
@@ -2042,7 +2046,7 @@
     }
 
   if (ok)
-    children = new_kids.stack (get_hidden_children ());
+    children = new_kids_column.stack (get_hidden_children ());
 }
 
 void