--- a/src/documentloader.cpp Fri Feb 10 23:06:24 2017 +0200 +++ b/src/documentloader.cpp Sun Feb 12 16:02:02 2017 +0200 @@ -116,7 +116,7 @@ LDObject* obj = _model->addFromString(line); // Check for parse errors and warn about them - if (obj->type() == OBJ_Error) + if (obj->type() == LDObjectType::Error) { print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason()); ++m_warningCount;