Mercurial > jwe > octave
changeset 20781:d02ffc87d9ee
avoid crash in legend function (bug #46561)
* legend.m (updatelegend): Pass "units" property name to the set
function as a string, not a cell array.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 30 Nov 2015 22:08:49 -0500 |
parents | 92958b1ee100 |
children | 05b86b044995 |
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 Nov 30 22:04:02 2015 -0500 +++ b/scripts/plot/appearance/legend.m Mon Nov 30 22:08:49 2015 -0500 @@ -1093,7 +1093,7 @@ set (hax, "position", position); set (hax, "outerposition", outerposition); endswitch - set (hax, {"units"}, units); + set (hax, "units", units); h = legend (hax(1), hplots, get (h, "string")); unwind_protect_cleanup