# HG changeset patch # User Jaroslav Hajek # Date 1245138565 -7200 # Node ID 5e4da3b3747e57360e6c7eb5a3d3b5fe69974ede # Parent 52bde0edd23a46ccae022c7b26b04fe6735aece2 fix context restoration in error state diff -r 52bde0edd23a -r 5e4da3b3747e src/ChangeLog --- a/src/ChangeLog Mon Jun 15 11:39:46 2009 -0400 +++ b/src/ChangeLog Tue Jun 16 09:49:25 2009 +0200 @@ -1,3 +1,8 @@ +2009-06-16 Jaroslav Hajek + + * symtab.h (symbol_table::set_scope_and_context): Avoid checking + error_state for setting context. + 2009-06-15 Jaroslav Hajek * ov-re-mat.h (octave_matrix::octave_matrix (const Array&, diff -r 52bde0edd23a -r 5e4da3b3747e src/symtab.h --- a/src/symtab.h Mon Jun 15 11:39:46 2009 -0400 +++ b/src/symtab.h Tue Jun 16 09:49:25 2009 +0200 @@ -939,11 +939,12 @@ instance = p->second; xcurrent_scope = scope; + + xcurrent_context = context; } } - - if (! error_state) - xcurrent_context = context; + else + xcurrent_context = context; } }