Use fuzzy functions to compare floats.

This commit is contained in:
Roman Telezhynskyi 2020-05-10 11:51:54 +03:00
parent 3e4b82b3cc
commit 02b21d818f

View File

@ -30,6 +30,7 @@
#include <QtMath>
#include "vpuzzlelayer.h"
#include "../vmisc/def.h"
#include <QLoggingCategory>
@ -149,7 +150,7 @@ void VPuzzlePiece::SetRotation(qreal angle)
// m_transform.rotate(newAngle);
if(m_pieceAngle != angle)
if(not VFuzzyComparePossibleNulls(m_pieceAngle, angle))
{
m_pieceAngle = angle;