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 diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
+++ b/src/ov-cell.cc
@@ -256,6 +256,7 @@
case '{':
{
+ matrix.make_unique ();
Cell tmpc = matrix.index (idx.front (), true);
if (! error_state)