src/documentloader.cpp

changeset 1123
15e46ea3151f
parent 1086
621c2e5853bb
child 1145
02264bf0108d
--- 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;

mercurial