items/qquicktext.cpp:2160:49: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| vAlign() != QQuickText::AlignTop && heightChanged) {
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
items/qquicktext.cpp:2160:49: note: place parentheses around the '&&' expression to silence this warning
|| vAlign() != QQuickText::AlignTop && heightChanged) {
^
( )
Change-Id: Id4bc18642228e7fad6d674bbcdf623446bb6a00f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
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;