Skip to content

Commit

Permalink
minor fix for MSVC and C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 authored and Snolandia committed Nov 22, 2024
1 parent c3e1bcc commit a284b6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jkqtplotter/jkqtpcoordinateaxes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ QString JKQTPCoordinateAxis::floattolabel(double data, int past_comma) const {
#if __cplusplus >= 202002L
# ifdef __cpp_lib_format
case JKQTPCALTformat: {
return QString::fromStdString(std::vformat(axisStyle.tickFormatFormat.toStdString(), std::make_format_args(data, tickUnitName.toStdString())));
const std::string tickUName=tickUnitName.toStdString();
return QString::fromStdString(std::vformat(axisStyle.tickFormatFormat.toStdString(), std::make_format_args(data, tickUName)));
}; break;
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
void setTickFormatFormat(const QString& __value);
Expand Down

0 comments on commit a284b6f

Please sign in to comment.