# HG changeset patch # User Ben Abbott # Date 1224010140 14400 # Node ID 5d6b9311be386ea9e5a27ce7dead12ca9acf39f8 # Parent 518789a0539db871e29fb8e7aee7b4974602b977 __go_draw_axes__.m: Fix concatenation of handles. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-13 Ben Abbott + + * plot/__go_draw_axes__.m: Fix concatenation of handles. + 2008-10-12 David Bateman * general/colon..m: New function. diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -930,8 +930,12 @@ endif case "hggroup" - # push group children into the kid list - kids = [obj.children kids]; + # push group children into the kid list + if (isempty (kids)) + kids = obj.children; + elseif (! isempty (obj.children)) + kids = [obj.children; kids]; + endif otherwise error ("__go_draw_axes__: unknown object class, %s",