Mercurial > hg > octave-lyh
diff scripts/plot/waitbar.m @ 14238:1facbe04b00c stable
Fix regression in 9fc597693b0b preventing updating of waitbar text string.
* waitbar.m: Fix regression in 9fc597693b0b preventing updating of
waitbar text string.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Fri, 20 Jan 2012 17:40:30 -0800 |
parents | 72c96de7a403 |
children | 7a7ce92cff56 |
line wrap: on
line diff
--- 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