Fix mistake in conditional format in bestresults

This commit is contained in:
Ricardo Montañana Gómez 2023-10-24 11:18:19 +02:00
parent 553ab0fa22
commit 651f84b562
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -118,9 +118,9 @@ namespace platform {
conditional_format->type = LXW_CONDITIONAL_TYPE_FORMULA;
string col = getColumnName(models.size() + 1);
stringstream oss;
oss << "=C5=" << formula << "(C5:" << col << "5)";
auto formulaValue = oss.str().c_str();
conditional_format->value_string = formulaValue;
oss << "=C5=" << formula << "($C5:$" << col << "5)";
auto formulaValue = oss.str();
conditional_format->value_string = formulaValue.c_str();
conditional_format->format = custom_format;
worksheet_conditional_format_range(worksheet, 4, 2, datasets.size() + 3, models.size() + 1, conditional_format);
}