Mercurial > hg > octave-terminal
changeset 10972:14d16530ad59
fltk_backend::object_destroyed: don't call delete_window if __plot_stream__ is empty
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 14 Sep 2010 02:21:13 -0400 |
parents | 386aa01ca84c |
children | a8235d26b57a |
files | src/ChangeLog src/DLD-FUNCTIONS/fltk_backend.cc |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-14 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/fltk_backend.cc (fltk_backend::object_destroyed): + Don't attempt to delete window if __plot_stream__ is empty. + 2010-09-14 Jordi GutiƩrrez Hermoso <jordigh@gmail.com> * load-path.cc (genpath): Pass SKIP in recursive call.
--- a/src/DLD-FUNCTIONS/fltk_backend.cc +++ b/src/DLD-FUNCTIONS/fltk_backend.cc @@ -1186,7 +1186,9 @@ if (go.isa ("figure")) { octave_value ov = go.get (caseless_str ("__plot_stream__")); - figure_manager::delete_window (ov.string_value ()); + + if (! ov.is_empty ()) + figure_manager::delete_window (ov.string_value ()); } }