Index: ../trunk-jpl/src/m/plot/processmesh.m
===================================================================
--- ../trunk-jpl/src/m/plot/processmesh.m	(revision 18951)
+++ ../trunk-jpl/src/m/plot/processmesh.m	(revision 18952)
@@ -20,15 +20,15 @@
 	return;
 end
 
-	if ~strcmpi(getfieldvalue(options,'coord','xy'),'latlon'),
-		x=md.mesh.x;
-		x2d=md.mesh.x2d; %if isprop(md.mesh,'x2d'), x2d=md.mesh.x2d; end
-		y=md.mesh.y;
-		y2d=md.mesh.y2d; %if isprop(md.mesh,'y2d'), y2d=md.mesh.y2d; end
-	else
-		x=md.mesh.long;
-		y=md.mesh.lat;
-	end
+if ~strcmpi(getfieldvalue(options,'coord','xy'),'latlon'),
+	x=md.mesh.x;
+	if isprop(md.mesh,'x2d'), x2d=md.mesh.x2d; end
+	y=md.mesh.y;
+	if isprop(md.mesh,'y2d'), y2d=md.mesh.y2d; end
+else
+	x=md.mesh.long;
+	y=md.mesh.lat;
+end
 
 if isprop(md.mesh,'z'),
 	z=md.mesh.z;
@@ -40,8 +40,8 @@
 	z=md.(z);
 end
 
-	elements2d=md.mesh.elements2d;%if isprop(md.mesh,'elements2d'), elements2d=md.mesh.elements2d; end
-	elements=md.mesh.elements;
+if isprop(md.mesh,'elements2d'), elements2d=md.mesh.elements2d; end
+elements=md.mesh.elements;
 
 %is it a 2d plot?
 if md.mesh.dimension()==2,
