diff -r 51cca3ce540d -r b230ae09c8e5 src/gui.cpp --- a/src/gui.cpp Sun Aug 18 17:38:33 2013 +0300 +++ b/src/gui.cpp Sun Aug 18 17:53:23 2013 +0300 @@ -238,7 +238,7 @@ LDFile::current()->obj (0)->getType() == LDObject::Comment) { // Append title - LDCommentObject* comm = static_cast (LDFile::current()->obj (0)); + LDComment* comm = static_cast (LDFile::current()->obj (0)); title += fmt (": %1", comm->text); } @@ -290,7 +290,7 @@ switch (obj->getType()) { case LDObject::Comment: - descr = static_cast (obj)->text; + descr = static_cast (obj)->text; // Remove leading whitespace while (descr[0] == ' ') @@ -303,7 +303,7 @@ case LDObject::Line: case LDObject::Triangle: case LDObject::Quad: - case LDObject::CondLine: + case LDObject::CndLine: for (short i = 0; i < obj->vertices(); ++i) { if (i != 0) descr += ", "; @@ -317,12 +317,12 @@ break; case LDObject::Vertex: - descr = static_cast (obj)->pos.stringRep (true); + descr = static_cast (obj)->pos.stringRep (true); break; case LDObject::Subfile: { - LDSubfileObject* ref = static_cast (obj); + LDSubfile* ref = static_cast (obj); descr = fmt ("%1 %2, (", ref->fileInfo()->name(), ref->position().stringRep (true)); @@ -336,12 +336,12 @@ break; case LDObject::BFC: - descr = LDBFCObject::statements[static_cast (obj)->type]; + descr = LDBFC::statements[static_cast (obj)->type]; break; case LDObject::Overlay: { - LDOverlayObject* ovl = static_cast (obj); + LDOverlay* ovl = static_cast (obj); descr = fmt ("[%1] %2 (%3, %4), %5 x %6", g_CameraNames[ovl->camera()], basename (ovl->filename()), ovl->x(), ovl->y(), ovl->width(), ovl->height()); }