mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
minor fix for MSVC and C++20
This commit is contained in:
parent
f41be57613
commit
966a537f4a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user