changeset 8233:beaf723a49eb

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 Thu, 16 Oct 2008 16:49:28 -0400
parents c6e9ff62c64a
children 8c4e79668a5e
files src/ChangeLog src/graphics.cc
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Oct 16 16:23:14 2008 -0400
+++ b/src/ChangeLog	Thu Oct 16 16:49:28 2008 -0400
@@ -1,5 +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.
+
 	* utils.cc (Fis_absolute_filename, Fis_rooted_relative_filename,
 	Fmake_absolute_filename, Ffind_dir_in_path): New functions.
 
@@ -9,7 +12,6 @@
 	(base_graphics_object&,	const std::string&)): Preserve font
 	and position properties if the axis is "replaced".
 
-
 2008-10-16  John W. Eaton  <jwe@octave.org>
 
 	* graphics.h.in (class axes::properties): New property: interpreter.
--- a/src/graphics.cc	Thu Oct 16 16:23:14 2008 -0400
+++ b/src/graphics.cc	Thu Oct 16 16:49:28 2008 -0400
@@ -1666,7 +1666,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++)
 	{