Fix CLANG-warning '&&' within '||' [-Wlogical-op-parentheses].
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Thu, 11 Jul 2013 07:59:03 +0000 (09:59 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 12 Jul 2013 06:43:00 +0000 (08:43 +0200)
Change-Id: Id724c86f87a78048df9b93f2d190593d36261943
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>

src/quick/items/qquicktext.cpp

index 39bdb90..ccc9fe3 100644 (file)
@@ -2160,7 +2160,7 @@ void QQuickText::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeo
         goto geomChangeDone;
 
     if ((effectiveHAlign() != QQuickText::AlignLeft && widthChanged)
-            || vAlign() != QQuickText::AlignTop && heightChanged) {
+            || (vAlign() != QQuickText::AlignTop && heightChanged)) {
         // If the width has changed and we're not left aligned do an update so the text is
         // repositioned even if a full layout isn't required. And the same for vertical.
         d->updateType = QQuickTextPrivate::UpdatePaintNode;