src/file.cpp

changeset 270
f5f2353af0d9
parent 269
2d71227f35cb
child 271
d5ec224c1879
--- 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"));
 			}
 		}
 		

mercurial