Mercurial > octave
changeset 29043:9aec2c6ad40c stable
legend.m: Lock file to avoid invalid function handles to subfunctions (bug #59439).
* scripts/plot/appearance/plot.m: Lock file to avoid invalid function handles to
subfunctions after clearing functions.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 11 Nov 2020 10:13:13 +0100 |
parents | b71672c8d337 |
children | 76ccc1446f22 4ec8a36990e8 |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Fri Dec 27 22:56:24 2019 +0100 +++ b/scripts/plot/appearance/legend.m Wed Nov 11 10:13:13 2020 +0100 @@ -199,6 +199,10 @@ return; endif + ## FIXME: This function needs to be locked to avoid bug #59439. Remove this + ## lock once that bug is properly fixed. + mlock (); + opts = parse_opts (varargin{:}); hl = opts.legend_handle;