src/file.cpp

changeset 429
3488534b2b31
parent 423
8516b8e14fb4
child 430
8458cf2719d1
equal deleted inserted replaced
428:53e577061dc8 429:3488534b2b31
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

mercurial