# HG changeset patch # User Rik # Date 1576017489 28800 # Node ID f78dc0d6ad2d2cb91dce5e3add0dacda8ae95a59 # Parent 8c1cb06468dbb2b1c3c7355c492af2ce854b71a5 Stop error in stem callback function (bug #57391). * __stem__.m (update_xlim): Check whether hggroup is "beingdeleted" before accessing "baseline" value from it. diff -r 8c1cb06468db -r f78dc0d6ad2d scripts/plot/draw/private/__stem__.m --- a/scripts/plot/draw/private/__stem__.m Tue Dec 10 23:13:14 2019 +0100 +++ b/scripts/plot/draw/private/__stem__.m Tue Dec 10 14:38:09 2019 -0800 @@ -362,7 +362,8 @@ for i = 1 : length (kids) obj = get (kids(i)); - if (strcmp (obj.type, "hggroup") && isfield (obj, "baseline")) + if (strcmp (obj.type, "hggroup") && isfield (obj, "baseline") + && ! strcmp (obj.beingdeleted, "on")) if (any (get (obj.baseline, "xdata") != xlim)) set (obj.baseline, "xdata", xlim); endif