summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-11-15 08:35:29 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-11-15 08:35:29 (GMT)
commit70a89a322ccaa8255bf2108b0747d4d6d4af6499 (patch)
tree1b762d32c32b4136c24f0f8320cbc47cec50e379
parent8394d6002b3b34b2e5c6d118c167f573edf3568d (diff)
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
-rw-r--r--mainwin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwin.cc b/mainwin.cc
index c6f2f1f..1c05684 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -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());
contact: Jan Huwald // Impressum