Mercurial > hg > octave-nkf
changeset 20459:b93a155dc200
ginput.m: Stop feval error when ginput called multiple times (bug #45261).
* ginput.m: Restore the original closereq function for the figure at the end of
a normal termination of ginput.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 06 Jun 2015 08:26:21 -0700 |
parents | 011a364b4d78 |
children | 0d94ec291ee6 |
files | scripts/plot/util/ginput.m |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/ginput.m +++ b/scripts/plot/util/ginput.m @@ -102,6 +102,7 @@ ## Only execute if window still exists set (fig, "windowbuttondownfcn", orig_windowbuttondownfcn); set (fig, "keypressfcn", orig_keypressfcn); + set (fig, "closerequestfcn", orig_closerequestfcn); endif end_unwind_protect