Commit e6ecaf860ea21fb46e1c056c4a3cacf0a3c23681
Exists in
master
and in
81 other branches
Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_Kernel
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
src/ParamOutputImpl/Plot/Axis.cc
... | ... | @@ -247,8 +247,13 @@ void Axis::writeContext(ContextFileWriter& writer) { |
247 | 247 | |
248 | 248 | writer.addAttribute("logarithmic", (_scale == Scale::LOGARITHMIC) ? "true" : "false"); |
249 | 249 | |
250 | - writer.addAttribute("min", std::to_string(getRange().getMin()).c_str()); | |
251 | - writer.addAttribute("max", std::to_string(getRange().getMax()).c_str()); | |
250 | + std::ostringstream outMin; | |
251 | + outMin << getRange().getMin(); | |
252 | + std::ostringstream outMax; | |
253 | + outMax << getRange().getMax(); | |
254 | + | |
255 | + writer.addAttribute("min", outMin.str().c_str()); | |
256 | + writer.addAttribute("max", outMax.str().c_str()); | |
252 | 257 | |
253 | 258 | writer.endElement(); |
254 | 259 | } | ... | ... |