Mercurial > octave
changeset 29402:90a5d56fc1cc
legend.m: Fix "location" callback to not run when "location"="none" (bug #60133).
* legend.m (update_location_cb): Check that "location" property != "none"
before updating layout.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 01 Mar 2021 15:33:37 -0800 |
parents | 9bbe11da0c38 |
children | aef9c5caedcd |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Mon Mar 01 13:46:01 2021 -0800 +++ b/scripts/plot/appearance/legend.m Mon Mar 01 15:33:37 2021 -0800 @@ -402,7 +402,7 @@ "specifier, using 'northeast' instead\n"]); endif - if (do_layout) + if (do_layout && ! strcmp (get (hl, "location"), "none")) update_layout_cb (hl); endif