diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2015-08-06 10:45:40 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2015-08-06 10:54:01 +0200 |
commit | 77da617dc8e378a631ee8c15b1b414f16b87f147 (patch) | |
tree | 563f4f8e64e416774ea2b1599b896b589385168c /src/gui/painting/qpdf.cpp | |
parent | c17134e2db4d364855aa78a0d3c47cb9ef964dd9 (diff) | |
parent | 01f3530650f9f6f4c08520263a3c62281d81e3fc (diff) |
Merge remote-tracking branch 'origin/5.5' into dev
Conflicts:
doc/global/qt-cpp-defines.qdocconf
src/3rdparty/forkfd/forkfd.c
src/corelib/codecs/qtextcodec.cpp
src/corelib/kernel/qmetatype.cpp
src/corelib/tools/qset.qdoc
src/gui/accessible/qaccessible.cpp
src/gui/image/qpixmapcache.cpp
src/opengl/qgl.cpp
src/tools/qdoc/generator.cpp
src/widgets/kernel/qwidget.cpp
tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
Change-Id: I4fbe1fa756a54c6843aa75f4ef70a1069ba7b085
Diffstat (limited to 'src/gui/painting/qpdf.cpp')
-rw-r--r-- | src/gui/painting/qpdf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index 9f1fc31466..846c513f01 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1984,8 +1984,8 @@ int QPdfEnginePrivate::createShadingFunction(const QGradient *gradient, int from if (reflect && step % 2) { for (int i = stops.size() - 1; i > 0; --i) { QGradientBound b; - b.start = step + 1 - qBound(0., stops.at(i).first, 1.); - b.stop = step + 1 - qBound(0., stops.at(i - 1).first, 1.); + b.start = step + 1 - qBound(qreal(0.), stops.at(i).first, qreal(1.)); + b.stop = step + 1 - qBound(qreal(0.), stops.at(i - 1).first, qreal(1.)); b.function = functions.at(i - 1); b.reverse = true; gradientBounds << b; @@ -1993,8 +1993,8 @@ int QPdfEnginePrivate::createShadingFunction(const QGradient *gradient, int from } else { for (int i = 0; i < stops.size() - 1; ++i) { QGradientBound b; - b.start = step + qBound(0., stops.at(i).first, 1.); - b.stop = step + qBound(0., stops.at(i + 1).first, 1.); + b.start = step + qBound(qreal(0.), stops.at(i).first, qreal(1.)); + b.stop = step + qBound(qreal(0.), stops.at(i + 1).first, qreal(1.)); b.function = functions.at(i); b.reverse = false; gradientBounds << b; |