src/LDObject.cc

changeset 684
8a56b1d4d44d
parent 681
c1cc036c6e1f
child 690
9e9c52ca955e
--- a/src/LDObject.cc	Sat Feb 22 16:41:03 2014 +0200
+++ b/src/LDObject.cc	Sun Feb 23 18:49:24 2014 +0200
@@ -341,12 +341,12 @@
 {
 	Type ot = getType();
 	int num =
-		(ot == LDObject::ELine)		? 2 :
-		(ot == LDObject::ETriangle)	? 3 :
-		(ot == LDObject::EQuad)		? 4 :
-		(ot == LDObject::ECondLine)	? 5 :
-									  0;
-	if (ot == 0)
+		(ot == LDObject::ELine)		?	2 :
+		(ot == LDObject::ETriangle)	?	3 :
+		(ot == LDObject::EQuad)		?	4 :
+		(ot == LDObject::ECondLine)	?	5 :
+										0;
+	if (num == 0)
 		return null;
 
 	LDPolygon* data = new LDPolygon;

mercurial