diff -r 7986584e7498 -r 9ecc878c7dea src/editmodes/drawMode.cpp --- a/src/editmodes/drawMode.cpp Sun Sep 06 20:45:51 2015 +0300 +++ b/src/editmodes/drawMode.cpp Tue Sep 22 00:59:21 2015 +0300 @@ -92,21 +92,21 @@ switch (verts.size()) { - case 2: + case 2: { // 2 verts - make a line LDLine* obj = LDSpawn (verts[0], verts[1]); obj->setColor (EdgeColor); objs << obj; - break; } + break; - case 3: - case 4: + case 3: + case 4: { - LDObject* obj = (verts.size() == 3) ? - static_cast (LDSpawn()) : - static_cast (LDSpawn()); + LDVertexObject* obj = (verts.size() == 3) ? + static_cast (LDSpawn()) : + static_cast (LDSpawn()); obj->setColor (MainColor); @@ -114,8 +114,8 @@ obj->setVertex (i, verts[i]); objs << obj; - break; } + break; } finishDraw (objs);