Clifford Wolf:

Fixed a bug in the expression evaluator
	(thx to Ralf Schlatterbeck for the bug report)



git-svn-id: http://svn.clifford.at/openscad/trunk@135 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
clifford 2009-11-22 09:26:22 +00:00
parent 70a89a322c
commit f3d2fedc09
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ void Context::args(const QVector<QString> &argnames, const QVector<Expression*>
int posarg = 0;
for (int i=0; i<call_argnames.size(); i++) {
if (call_argnames[i].isEmpty()) {
set_variable(argnames[posarg++], call_argvalues[i]);
if (posarg < argnames.size())
set_variable(argnames[posarg++], call_argvalues[i]);
} else {
set_variable(call_argnames[i], call_argvalues[i]);
}