summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-06-08 06:12:23 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-08 06:12:23 (GMT)
commit6c9e1cb72a3feef2ebeb1fbf7c407c7d804a6338 (patch)
treea0b613280af7c7723db4be067e847e772a9f6a58 /src
parentf2f019f57ea1923e5378b36f463335888f262b56 (diff)
parent9e78c066f9a96f9b5fca360844dd42acde2ef3a9 (diff)
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src')
-rw-r--r--src/mainwin.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 946bc2a..d10337d 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -655,7 +655,11 @@ bool MainWindow::compile(bool reload, bool procevents)
if (procevents) QApplication::processEvents();
AbstractNode::resetIndexCounter();
- this->root_inst = ModuleInstantiation("group");
+
+ // split these two lines - gcc 4.7 bug
+ ModuleInstantiation mi = ModuleInstantiation( "group" );
+ this->root_inst = mi;
+
this->absolute_root_node = this->root_module->instantiate(&top_ctx, &this->root_inst, NULL);
if (this->absolute_root_node) {
contact: Jan Huwald // Impressum