Change value for an uninitialized local variable to NAN.
This commit is contained in:
parent
6ef17ec05b
commit
3a76f5f0cb
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user