Mercurial > jwe > octave
changeset 26733:8e1e5a44a632 stable
colorbar.m: fix regression when peer axes is reset (bug #55713)
* colobar.m (cb_clim): Don't run listener if the colorbar has already been
deleted.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 14 Feb 2019 23:27:40 +0100 |
parents | c66f509d9f5c |
children | 5e97c26bf0e5 |
files | scripts/plot/draw/colorbar.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/colorbar.m Tue Feb 12 15:31:52 2019 -0500 +++ b/scripts/plot/draw/colorbar.m Thu Feb 14 23:27:40 2019 +0100 @@ -443,7 +443,7 @@ ## Update colorbar when clim has changed function cb_clim (hax, ~, hcb, hi) - if (isaxes (hax)) + if (isaxes (hax) && isaxes (hcb)) clen = rows (get (hax, "colormap")); cext = get (hax, "clim"); cdiff = (cext(2) - cext(1)) / clen / 2;