diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2011-02-20 14:03:47 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-02-21 13:44:09 (GMT) |
commit | d73112eaafb6e48278c765c9c84469ec8b74e973 (patch) | |
tree | 0dc7a3288e9fda2559191e3e4b310743a4e10674 /src/gui/painting/qpainterpath.cpp | |
parent | 7ef73c9b9eb445796b6a9296618daf3b085841c4 (diff) | |
download | Qt-d73112eaafb6e48278c765c9c84469ec8b74e973.zip Qt-d73112eaafb6e48278c765c9c84469ec8b74e973.tar.gz Qt-d73112eaafb6e48278c765c9c84469ec8b74e973.tar.bz2 |
Fix warning about parentheses about && in ||
Diffstat (limited to 'src/gui/painting/qpainterpath.cpp')
-rw-r--r-- | src/gui/painting/qpainterpath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index 81ca40f..8bff021 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -874,7 +874,7 @@ void QPainterPath::arcTo(const QRectF &rect, qreal startAngle, qreal sweepLength rect.x(), rect.y(), rect.width(), rect.height(), startAngle, sweepLength); #endif - if (!qt_is_finite(rect.x()) && !qt_is_finite(rect.y()) || !qt_is_finite(rect.width()) || !qt_is_finite(rect.height()) + if ((!qt_is_finite(rect.x()) && !qt_is_finite(rect.y())) || !qt_is_finite(rect.width()) || !qt_is_finite(rect.height()) || !qt_is_finite(startAngle) || !qt_is_finite(sweepLength)) { #ifndef QT_NO_DEBUG qWarning("QPainterPath::arcTo: Adding arc where a parameter is NaN or Inf, ignoring call"); |