src/documentloader.cpp

changeset 1187
46dc716238fd
parent 1186
eae8b3bce545
--- a/src/documentloader.cpp	Sun Mar 05 16:47:52 2017 +0200
+++ b/src/documentloader.cpp	Sun Mar 05 16:50:06 2017 +0200
@@ -113,7 +113,7 @@
 		while (line.endsWith ("\n") or line.endsWith ("\r"))
 			line.chop (1);
 
-		LDObject* obj = _model->addFromString(line);
+		LDObject* obj = _model->appendFromString(line);
 
 		// Check for parse errors and warn about them
 		if (obj->type() == LDObjectType::Error)

mercurial