698 g_loadingMainFile = false; |
698 g_loadingMainFile = false; |
699 LDFile* load = getFile (tokens[14]); |
699 LDFile* load = getFile (tokens[14]); |
700 g_loadingMainFile = tmp; |
700 g_loadingMainFile = tmp; |
701 |
701 |
702 // If we cannot open the file, mark it an error |
702 // If we cannot open the file, mark it an error |
703 if (!load) |
703 if (!load) { |
704 return new LDErrorObject (line, "Could not open referred file"); |
704 LDErrorObject* obj = new LDErrorObject (line, "Could not open referred file"); |
|
705 obj->setFileRef (tokens[14]); |
|
706 return obj; |
|
707 } |
705 |
708 |
706 LDSubfileObject* obj = new LDSubfileObject; |
709 LDSubfileObject* obj = new LDSubfileObject; |
707 obj->setColor (tokens[1].toLong()); |
710 obj->setColor (tokens[1].toLong()); |
708 obj->setPosition (parseVertex (tokens, 2)); // 2 - 4 |
711 obj->setPosition (parseVertex (tokens, 2)); // 2 - 4 |
709 |
712 |