From 651f84b562deb56b3f41fd1b3da4b54716087c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 24 Oct 2023 11:18:19 +0200 Subject: [PATCH] Fix mistake in conditional format in bestresults --- src/Platform/BestResultsExcel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Platform/BestResultsExcel.cc b/src/Platform/BestResultsExcel.cc index eaf5f09..0dcd2e2 100644 --- a/src/Platform/BestResultsExcel.cc +++ b/src/Platform/BestResultsExcel.cc @@ -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); }