Mercurial > hg > octave-terminal
changeset 13849:b4b8e525dee0
Stop debug_on_error triggering for a new plot (bug #32655)
graphics.cc (remove_all_listeners): Turn off debug_on_error, debug_on_warning
when removing all listeners. Function is known to call get_property on
properties which may not exist.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 09 Nov 2011 17:53:23 -0800 |
parents | 40e32fe44aaa |
children | 64ab148fcbb9 |
files | src/graphics.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -2811,10 +2811,14 @@ unwind_protect frame; + frame.protect_var (error_state); frame.protect_var (discard_error_messages); - frame.protect_var (error_state); + frame.protect_var (Vdebug_on_error); + frame.protect_var (Vdebug_on_warning); discard_error_messages = true; + Vdebug_on_error = false; + Vdebug_on_warning = false; property p = get_properties ().get_property (pa->first);