summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-11-08 19:14:03 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-11-08 19:14:03 (GMT)
commit8394d6002b3b34b2e5c6d118c167f573edf3568d (patch)
tree120173638c2b155f65b9124dde8949d4af31d10c /mainwin.cc
parentac26c9d683edd89c54af1990760fd2159277791d (diff)
Clifford Wolf:
Added commandline_commands support git-svn-id: http://svn.clifford.at/openscad/trunk@132 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwin.cc b/mainwin.cc
index fcf7098..c6f2f1f 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.toAscii().data(), false);
+ root_module = parse((last_compiled_doc + commandline_commands).toAscii().data(), false);
delete highlighter;
highlighter = new Highlighter(editor->document());
contact: Jan Huwald // Impressum