summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-01 03:11:29 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-01 03:11:29 (GMT)
commit76f0b1119f1be174ce7adbb1458d2d9a3fa30d22 (patch)
tree0c30a8720e8fd56a6a051ec3a2d2d3f61307b7e1 /src/mainwin.cc
parent17eb94bf67ae55fb3f649d99790593907b7820b0 (diff)
bugfix: In MDI mode, the parser must know which file it compiles, not just the contents, for inluded files to be found. Made the parser Qt-dependant - oh well...
git-svn-id: http://svn.clifford.at/openscad/trunk@395 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 9ed008a..58c539d 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -530,7 +530,7 @@ void MainWindow::compile(bool procevents)
// Parse
last_compiled_doc = editor->toPlainText();
- root_module = parse((last_compiled_doc + "\n" + commandline_commands).toAscii().data(), false);
+ root_module = parse((last_compiled_doc + "\n" + commandline_commands).toAscii().data(), this->fileName.isEmpty() ? "" : QFileInfo(this->fileName).absolutePath().toLocal8Bit(), false);
// Error highlighting
if (highlighter) {
contact: Jan Huwald // Impressum