Skip to content

Commit

Permalink
Formula engine: Fix replace() with 3 arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 21, 2016
1 parent 8ea72e8 commit ff15510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formula/function.cpp
Expand Up @@ -444,7 +444,7 @@ class replace_function : public function_expression {
}
}

if(args().size() > 2) {
if(args().size() > 3) {
int size = args()[2]->evaluate(variables, fdb).as_int();
if(size < 0) {
size = -size;
Expand Down

0 comments on commit ff15510

Please sign in to comment.