# HG changeset patch # User Pantxo Diribarne # Date 1618521375 -7200 # Node ID 205033e01792adf26fda3f1e5795f8ac8eabbd23 # Parent 0b429d1a4974558eb3e517f6fc1646351230516f annotation.m: Fix callbacks called with too many inputs * annotation.m (textmenu, textboxmenu, addbasemenu): Discard the two required arguments in anonymous callbacks. diff -r 0b429d1a4974 -r 205033e01792 scripts/plot/appearance/annotation.m --- a/scripts/plot/appearance/annotation.m Thu Apr 15 17:48:35 2021 +0200 +++ b/scripts/plot/appearance/annotation.m Thu Apr 15 23:16:15 2021 +0200 @@ -675,7 +675,7 @@ ## String; prop = "String"; - fcn = @() stringdlg (hpar, prop); + fcn = @(~, ~) stringdlg (hpar, prop); uimenu (hm, "label", prop, "callback", fcn); ## Font properties @@ -743,7 +743,7 @@ hm1 = uimenu ("parent", hui, "label", "Text"); prop = "String"; - fcn = @() stringdlg (hpar, prop); + fcn = @(~, ~) stringdlg (hpar, prop); uimenu (hm1, "label", prop, "callback", fcn); prop = "Color"; @@ -853,7 +853,7 @@ label = disp (val); endif - fcn = @() set (hpar, pname, val); + fcn = @(~, ~) set (hpar, pname, val); htmp(i) = uimenu (h, "label", label, "callback", fcn); endfor