changeset 11939:a24565131108 release-3-0-x

fix invalid matrix dimensioning in graphics.cc
author Marco Caliari <marco.caliari@univr.it>
date Wed, 25 Feb 2009 08:40:31 +0100
parents 3b5a99b63570
children 0d7e145c1ca4
files src/ChangeLog src/graphics.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-25  Marco Caliari <marco.caliari@univr.it>
+
+	* graphics.cc (base_properties::remove_child): Fix order of dims.
+
 2009-02-13  John W. Eaton  <jwe@octave.org>
 
 	* oct-stream.cc (octave_base_stream::do_gets): Handle CRLF and CR.
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -715,7 +715,7 @@
 
   if (k >= 0)
     {
-      Matrix new_kids (n-1, 1);
+      Matrix new_kids (1, n-1);
       octave_idx_type j = 0;
       for (octave_idx_type i = 0; i < n; i++)
 	{