changeset 9106:1eb5b24186b6

fix nested cell assignment
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 09 Apr 2009 21:44:47 +0200
parents 9b12ed1fbbbd
children d0d507cbd123
files src/ChangeLog src/ov-cell.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Apr 08 23:18:05 2009 -0400
+++ b/src/ChangeLog	Thu Apr 09 21:44:47 2009 +0200
@@ -1,3 +1,8 @@
+2009-04-09  Jaroslav Hajek  <highegg@gmail.com>
+
+	* ov-cell.cc (octave_cell::subsasgn): Fix reference counting
+	optimization.
+
 2009-04-08  John W. Eaton  <jwe@octave.org>
 
 	* load-path.cc (rehash_internal): New function.
--- a/src/ov-cell.cc	Wed Apr 08 23:18:05 2009 -0400
+++ b/src/ov-cell.cc	Thu Apr 09 21:44:47 2009 +0200
@@ -256,6 +256,7 @@
 
 	case '{':
 	  {
+            matrix.make_unique ();
 	    Cell tmpc = matrix.index (idx.front (), true);
 
 	    if (! error_state)