changeset 10157:cf17f22f1fd4

trivial fix to durface and lines for empty markers
author David Bateman <dbateman@free.fr>
date Thu, 21 Jan 2010 00:21:44 +0100
parents f481496013a2
children 4c0cdbe0acca
files scripts/plot/__go_draw_axes__.m
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m	Thu Jan 21 00:16:41 2010 +0100
+++ b/scripts/plot/__go_draw_axes__.m	Thu Jan 21 00:21:44 2010 +0100
@@ -1747,10 +1747,11 @@
     endif
     if (isfield (obj, "markeredgecolor") 
 	&& !strncmp (obj.markeredgecolor, "none", 4))
-      if (facesame && (strncmp (obj.markeredgecolor, "auto", 4)
-		       || ! isnumeric (obj.markeredgecolor) 
-		       || (isnumeric (obj.markeredgecolor) 
-			   && isequal (color, obj.markeredgecolor))))
+      if (facesame && !isempty (pt)
+          && (strncmp (obj.markeredgecolor, "auto", 4)
+	      || ! isnumeric (obj.markeredgecolor) 
+	      || (isnumeric (obj.markeredgecolor) 
+		  && isequal (color, obj.markeredgecolor))))
 	if (sidx == 1 && ((length (style {sidx}) == 5 
 	    && strncmp (style {sidx}, "lines", 5)) || isempty (style {sidx})))
 	  if (! isempty (pt))