Change value for an uninitialized local variable to NAN.

This commit is contained in:
Roman Telezhynskyi 2020-11-09 13:39:32 +02:00
parent 6ef17ec05b
commit 3a76f5f0cb
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
- [smart-pattern/valentina#73] Notes for tools.
- Fix crash while synchronize measurements.
- Object alias.
- Change value for an uninitialized local variable to NAN.
# Version 0.7.36 October 24, 2020
- [#892] Show tooltip for piece node point.

View File

@ -109,7 +109,7 @@ qreal *Calculator::VarFactory(const QString &a_szName, void *a_pUserData)
if (a_szName.startsWith('#'))
{
QSharedPointer<qreal> val(new qreal(0));
QSharedPointer<qreal> val(new qreal(std::numeric_limits<qreal>::quiet_NaN()));
calc->m_varsValues.append(val);
return val.data();
}