summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-11-05 20:17:08 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-11-05 20:17:08 (GMT)
commit67106a40c7ab5baab8d879fb354e74bec722f5f6 (patch)
treeda94fc5aa3c5b70ac28d2fd61cec2adb02399e69 /mainwin.cc
parent5312d2fbba47c5d8e0072e31fc50651888e0d63d (diff)
Clifford Wolf:
Improved error highlighting Fixed caching bug in render() statement git-svn-id: http://svn.clifford.at/openscad/trunk@129 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/mainwin.cc b/mainwin.cc
index d63990e..cf17c88 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -415,12 +415,8 @@ void MainWindow::compile(bool procevents)
delete highlighter;
highlighter = new Highlighter(editor->document());
- if (!root_module) {
- QTextCursor cursor = editor->textCursor();
- cursor.setPosition(parser_error_pos);
- editor->setTextCursor(cursor);
+ if (!root_module)
goto fail;
- }
PRINT("Compiling design (CSG Tree generation)...");
if (procevents)
contact: Jan Huwald // Impressum