From 6b649e560c551c26ee3d0e0bf5f96958f9873133 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 25 Jan 2008 17:16:38 +0000 Subject: [PATCH] operator precedence issue svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766361 --- layouts/boxlayout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/boxlayout.cpp b/layouts/boxlayout.cpp index 84ac18b7a..6de09d60d 100644 --- a/layouts/boxlayout.cpp +++ b/layouts/boxlayout.cpp @@ -243,8 +243,8 @@ public: { QSizeF result; - const qreal totalSpacingC = q->spacing() * colCount() - 1; - const qreal totalSpacingR = q->spacing() * rowCount - 1; + const qreal totalSpacingC = q->spacing() * (colCount() - 1); + const qreal totalSpacingR = q->spacing() * (rowCount - 1); switch (direction) { case LeftToRight: