mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-06 02:15:52 +00:00
release 3.1.1
* translation update * fix broken build with gcc (#87). The issue was reproduced only with gcc build and has been resolved by just replacing C-like `isnan` to `std::isnan`
This commit is contained in:
@ -164,7 +164,7 @@ float GraphicalItemHelper::getPercents(const float &value, const float &min,
|
||||
{
|
||||
qCDebug(LOG_LIB) << "Get percent value from" << value;
|
||||
// newest Qt crashes here if value is nan
|
||||
if (isnan(value))
|
||||
if (std::isnan(value))
|
||||
return 0.0;
|
||||
|
||||
return (value - min) / (max - min);
|
||||
|
Reference in New Issue
Block a user