changeset 8216:5d6b9311be38

__go_draw_axes__.m: Fix concatenation of handles.
author Ben Abbott <bpabbott@mac.com>
date Tue, 14 Oct 2008 14:49:00 -0400
parents 518789a0539d
children f74cb5e3a6c1
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Oct 14 14:34:56 2008 -0400
+++ b/scripts/ChangeLog	Tue Oct 14 14:49:00 2008 -0400
@@ -1,3 +1,7 @@
+2008-10-13  Ben Abbott <bpabbott@mac.com>
+
+	* plot/__go_draw_axes__.m: Fix concatenation of handles.
+
 2008-10-12  David Bateman  <dbateman@free.fr>
 
 	* general/colon..m: New function.
--- a/scripts/plot/__go_draw_axes__.m	Tue Oct 14 14:34:56 2008 -0400
+++ b/scripts/plot/__go_draw_axes__.m	Tue Oct 14 14:49:00 2008 -0400
@@ -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",