# HG changeset patch # User Rik # Date 1327110030 28800 # Node ID 1facbe04b00c5510a0d9c861e8eb0449c9924ff7 # Parent 846273dae16ba2b04aa3f4191a6c6feecb92905c Fix regression in 9fc597693b0b preventing updating of waitbar text string. * waitbar.m: Fix regression in 9fc597693b0b preventing updating of waitbar text string. diff --git a/scripts/plot/waitbar.m b/scripts/plot/waitbar.m --- a/scripts/plot/waitbar.m +++ b/scripts/plot/waitbar.m @@ -92,8 +92,12 @@ if (ischar (msg) || iscellstr (msg)) th = get (ax, "title"); curr_msg = get (th, "string"); + ## graphics handles always store data as column vectors + if (iscellstr (msg)) + msg = msg(:); + endif cmp = strcmp (msg, curr_msg); - if (all (cmp(:))) + if (! all (cmp(:))) set (th, "string", msg); endif endif