diff -r b7460d693f63 -r 8a56b1d4d44d src/LDObject.cc --- 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;