summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-12 11:34:41 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-12 11:34:41 (GMT)
commit5a4877c5cb3cce096aafed5eab619c44b660901b (patch)
tree149a8d97a536e379558207b63ea1c5afbce3dd6d /src/gui/painting
parente780030ca6990e73444646e6deae48145ca49972 (diff)
downloadQt-5a4877c5cb3cce096aafed5eab619c44b660901b.zip
Qt-5a4877c5cb3cce096aafed5eab619c44b660901b.tar.gz
Qt-5a4877c5cb3cce096aafed5eab619c44b660901b.tar.bz2
fixing warnings for qreal=float
Reviewed-by: Joerg
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qtransform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp
index b6d7842..8832a3d 100644
--- a/src/gui/painting/qtransform.cpp
+++ b/src/gui/painting/qtransform.cpp
@@ -81,7 +81,7 @@ QT_BEGIN_NAMESPACE
ny = affine._m12 * FX_ + affine._m22 * FY_ + affine._dy; \
if (t == TxProject) { \
qreal w = (m_13 * FX_ + m_23 * FY_ + m_33); \
- if (w < Q_NEAR_CLIP) w = Q_NEAR_CLIP; \
+ if (w < qreal(Q_NEAR_CLIP)) w = qreal(Q_NEAR_CLIP); \
w = 1./w; \
nx *= w; \
ny *= w; \