# HG changeset patch # User Rik # Date 1433604381 25200 # Node ID b93a155dc2005418aba962123e9eaf53379b9c7c # Parent 011a364b4d78a00d8ce279bdbb086745d678dfbb 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. diff -r 011a364b4d78 -r b93a155dc200 scripts/plot/util/ginput.m --- a/scripts/plot/util/ginput.m Fri Jun 05 15:51:04 2015 -0400 +++ b/scripts/plot/util/ginput.m Sat Jun 06 08:26:21 2015 -0700 @@ -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