summaryrefslogtreecommitdiff
path: root/expr.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-23 16:00:38 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-23 16:00:38 (GMT)
commitf158370f5ef5745c273f2f47c57b77d1fcc2f0db (patch)
tree3051b31f73816d6062f12cf6ed4bb269b83dc077 /expr.cc
parent7516cd5e8150e7f6850179ace35622b186237401 (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.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/expr.cc b/expr.cc
index 81fe7b3..e20e977 100644
--- a/expr.cc
+++ b/expr.cc
@@ -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")
contact: Jan Huwald // Impressum