Fix mistake in conditional format in bestresults
This commit is contained in:
parent
553ab0fa22
commit
651f84b562
@ -118,9 +118,9 @@ namespace platform {
|
|||||||
conditional_format->type = LXW_CONDITIONAL_TYPE_FORMULA;
|
conditional_format->type = LXW_CONDITIONAL_TYPE_FORMULA;
|
||||||
string col = getColumnName(models.size() + 1);
|
string col = getColumnName(models.size() + 1);
|
||||||
stringstream oss;
|
stringstream oss;
|
||||||
oss << "=C5=" << formula << "(C5:" << col << "5)";
|
oss << "=C5=" << formula << "($C5:$" << col << "5)";
|
||||||
auto formulaValue = oss.str().c_str();
|
auto formulaValue = oss.str();
|
||||||
conditional_format->value_string = formulaValue;
|
conditional_format->value_string = formulaValue.c_str();
|
||||||
conditional_format->format = custom_format;
|
conditional_format->format = custom_format;
|
||||||
worksheet_conditional_format_range(worksheet, 4, 2, datasets.size() + 3, models.size() + 1, conditional_format);
|
worksheet_conditional_format_range(worksheet, 4, 2, datasets.size() + 3, models.size() + 1, conditional_format);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user