summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/bigscene-cpp/entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/bigscene-cpp/entity.cpp b/tests/manual/bigscene-cpp/entity.cpp
index a4625a9b2..c3786275e 100644
--- a/tests/manual/bigscene-cpp/entity.cpp
+++ b/tests/manual/bigscene-cpp/entity.cpp
@@ -102,7 +102,7 @@ QColor Entity::diffuseColor() const
void Entity::setTheta(float theta)
{
- if (m_theta == theta)
+ if (qFuzzyCompare(m_theta, theta))
return;
m_theta = theta;
@@ -114,7 +114,7 @@ void Entity::setTheta(float theta)
void Entity::setPhi(float phi)
{
- if (m_phi == phi)
+ if (qFuzzyCompare(m_phi, phi))
return;
m_phi = phi;