Mercurial > hg > octave-lyh
diff scripts/plot/legend.m @ 11149:fe3c3dfc07eb
style fix: break lines before && and ||, not after
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 23 Oct 2010 03:00:31 -0400 |
parents | 7c045d801702 |
children | 9f080d23396f |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -766,9 +766,9 @@ endif for i = 1 : numel (ca) - if (ishandle (ca(i)) && strcmp (get (ca(i), "type"), "axes") && - (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")) && - strcmp (get (ca(i), "beingdeleted"), "off")) + if (ishandle (ca(i)) && strcmp (get (ca(i), "type"), "axes") + && (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")) + && strcmp (get (ca(i), "beingdeleted"), "off")) units = get (ca(i), "units"); unwind_protect set (ca(i), "units", "points"); @@ -785,18 +785,18 @@ endfunction function deletelegend1 (h, d, ca) - if (ishandle (ca) && strcmp (get (ca, "type"), "axes") && - (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")) && - strcmp (get (ca, "beingdeleted"), "off")) + if (ishandle (ca) && strcmp (get (ca, "type"), "axes") + && (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")) + && strcmp (get (ca, "beingdeleted"), "off")) delete (ca); endif endfunction function deletelegend2 (h, d, ca, pos, outpos, t1) for i = 1 : numel (ca) - if (ishandle (ca(i)) && strcmp (get (ca(i), "type"), "axes") && - (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")) && - strcmp (get (ca(i), "beingdeleted"), "off")) + if (ishandle (ca(i)) && strcmp (get (ca(i), "type"), "axes") + && (isempty (gcbf()) || strcmp (get (gcbf(), "beingdeleted"),"off")) + && strcmp (get (ca(i), "beingdeleted"), "off")) if (!isempty (pos) && !isempty(outpos)) units = get (ca(i), "units"); unwind_protect