From 4b9f5c7600772ddd1e091c8780b1fd70e9ba5001 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 20 Jun 2011 12:21:33 +0200 Subject: Compile when qreal is not a double --- src/declarative/particles/qsgpointattractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarative/particles/qsgpointattractor.cpp b/src/declarative/particles/qsgpointattractor.cpp index 4c675237ba..0a893f7743 100644 --- a/src/declarative/particles/qsgpointattractor.cpp +++ b/src/declarative/particles/qsgpointattractor.cpp @@ -60,11 +60,11 @@ bool QSGPointAttractorAffector::affectParticle(QSGParticleData *d, qreal dt) qreal ds = 0; switch(m_proportionalToDistance){ case Quadratic: - ds = (m_strength / qMax(1.,r*r)) * dt; + ds = (m_strength / qMax(1.,r*r)) * dt; break; case Linear://also default default: - ds = (m_strength / qMax(1.,r)) * dt; + ds = (m_strength / qMax(1.,r)) * dt; } dx = ds * cos(theta); dy = ds * sin(theta); -- cgit v1.2.3