changeset 11899:bfac13fcb6fe release-3-0-x

graphics.cc (base_properties::remove_child): handle children as a column vector instead of a row vector
author John W. Eaton <jwe@octave.org>
date Mon, 05 Jan 2009 08:17:53 +0100
parents 78eae8c8792d
children 9e07dffc8a60
files src/ChangeLog src/graphics.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Jan 05 08:17:10 2009 +0100
+++ b/src/ChangeLog	Mon Jan 05 08:17:53 2009 +0100
@@ -1,3 +1,8 @@
+2008-10-16  John W. Eaton  <jwe@octave.org>
+
+	* graphics.cc (base_properties::remove_child): Handle children as
+	a column vector instead of a row vector.
+
 2008-12-08  Jaroslav Hajek  <highegg@gmail.com>
 
 	* pt-select.cc (equal): Make empty matrices match.
--- a/src/graphics.cc	Mon Jan 05 08:17:10 2009 +0100
+++ b/src/graphics.cc	Mon Jan 05 08:17:53 2009 +0100
@@ -702,7 +702,7 @@
 
   if (k >= 0)
     {
-      Matrix new_kids (1, n-1);
+      Matrix new_kids (n-1, 1);
       octave_idx_type j = 0;
       for (octave_idx_type i = 0; i < n; i++)
 	{