changeset 6039:2c9b89b6b919

[project @ 2006-10-09 14:49:20 by jwe]
author jwe
date Mon, 09 Oct 2006 14:49:20 +0000
parents b59139756862
children 2bcb2fa24bbf
files src/ChangeLog src/pt-cell.cc src/pt-mat.cc
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-09  John W. Eaton  <jwe@octave.org>
+
+	* pt-mat.cc (tree_matrix::dup): Append new elements to new matrix.
+	* pt-cell.cc (tree_cell::dup): Append new elements to new cell array.
+
 2006-10-04  John W. Eaton  <jwe@octave.org>
 
 	* version.h (OCTAVE_VERSION): Now 2.9.9+.
--- a/src/pt-cell.cc
+++ b/src/pt-cell.cc
@@ -110,7 +110,7 @@
     {
       tree_argument_list *elt = *p;
 
-      append (elt ? elt->dup (sym_tab) : 0);
+      new_cell->append (elt ? elt->dup (sym_tab) : 0);
     }
 
   new_cell->copy_base (*this);
--- a/src/pt-mat.cc
+++ b/src/pt-mat.cc
@@ -942,7 +942,7 @@
     {
       tree_argument_list *elt = *p;
 
-      append (elt ? elt->dup (sym_tab) : 0);
+      new_matrix->append (elt ? elt->dup (sym_tab) : 0);
     }
 
   new_matrix->copy_base (*this);