diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-23 16:00:38 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-23 16:00:38 (GMT) |
commit | f158370f5ef5745c273f2f47c57b77d1fcc2f0db (patch) | |
tree | 3051b31f73816d6062f12cf6ed4bb269b83dc077 /expr.cc | |
parent | 7516cd5e8150e7f6850179ace35622b186237401 (diff) |
Clifford Wolf:
Fixed dxf caching
Fixed dxf unsupported entity reporting
Fixed dumping of vector expressions
git-svn-id: http://svn.clifford.at/openscad/trunk@70 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'expr.cc')
-rw-r--r-- | expr.cc | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -150,8 +150,15 @@ QString Expression::dump() const return const_value->dump(); if (type == "R") return QString("[%1 : %2 : %3]").arg(children[0]->dump(), children[1]->dump(), children[2]->dump()); - if (type == "V") - return QString("[%1, %2, %3]").arg(children[0]->dump(), children[1]->dump(), children[2]->dump()); + if (type == "V") { + QString text = QString("["); + for (int i=0; i < children.size(); i++) { + if (i > 0) + text += QString(", "); + text += children[i]->dump(); + } + return text + QString("]"); + } if (type == "L") return var_name; if (type == "N") |