--- a/src/file.cpp Sat Jun 01 22:01:27 2013 +0300 +++ b/src/file.cpp Sat Jun 01 22:42:52 2013 +0300 @@ -538,7 +538,7 @@ // Write all entries now for (LDObject* obj : objs ()) { // LDraw requires files to have DOS line endings - str line = fmt ("%s\r\n", obj->getContents ().chars ()); + str line = fmt ("%s\r\n", obj->raw ().chars ()); fwrite (line.chars(), 1, line.len (), fp); } @@ -801,7 +801,7 @@ ref->setFileInfo (fileInfo); else { // Couldn't load the file, mark it an error - ref->replace (new LDGibberish (ref->getContents (), "Could not open referred file")); + ref->replace (new LDGibberish (ref->raw (), "Could not open referred file")); } }