Clifford Wolf:

Tiny fix for files ending with a non-newline terminated comment



git-svn-id: http://svn.clifford.at/openscad/trunk@134 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
clifford 2009-11-15 08:35:29 +00:00
parent 8394d6002b
commit 70a89a322c
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ void MainWindow::compile(bool procevents)
root_ctx.set_variable("$vpr", vpr);
last_compiled_doc = editor->toPlainText();
root_module = parse((last_compiled_doc + commandline_commands).toAscii().data(), false);
root_module = parse((last_compiled_doc + "\n" + commandline_commands).toAscii().data(), false);
delete highlighter;
highlighter = new Highlighter(editor->document());