114 line.chop (1); |
114 line.chop (1); |
115 |
115 |
116 LDObject* obj = _model->addFromString(line); |
116 LDObject* obj = _model->addFromString(line); |
117 |
117 |
118 // Check for parse errors and warn about them |
118 // Check for parse errors and warn about them |
119 if (obj->type() == OBJ_Error) |
119 if (obj->type() == LDObjectType::Error) |
120 { |
120 { |
121 print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason()); |
121 print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason()); |
122 ++m_warningCount; |
122 ++m_warningCount; |
123 } |
123 } |
124 } |
124 } |