src/toolsets/filetoolset.cpp

changeset 1288
d1e45f90654b
parent 1269
ec691d9472b3
child 1308
dcc8c02530c2
--- a/src/toolsets/filetoolset.cpp	Thu Mar 15 18:51:58 2018 +0200
+++ b/src/toolsets/filetoolset.cpp	Fri Mar 16 11:50:35 2018 +0200
@@ -22,6 +22,7 @@
 #include "../lddocument.h"
 #include "../mainwindow.h"
 #include "../partdownloader.h"
+#include "../parser.h"
 #include "../primitives.h"
 #include "../dialogs/configdialog.h"
 #include "../dialogs/ldrawpathdialog.h"
@@ -117,7 +118,8 @@
 		if (file.open(QIODevice::ReadOnly))
 		{
 			Model model {m_documents};
-			m_documents->loadFileContents(&file, model, nullptr, nullptr);
+			Parser parser {file};
+			parser.parseBody(model);
 
 			mainWindow()->clearSelection();
 

mercurial