summaryrefslogtreecommitdiffstats
path: root/src/kernel/qlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qlayout.cpp')
-rw-r--r--src/kernel/qlayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/qlayout.cpp b/src/kernel/qlayout.cpp
index c2418b6..de9f5b9 100644
--- a/src/kernel/qlayout.cpp
+++ b/src/kernel/qlayout.cpp
@@ -433,7 +433,7 @@ void QGridLayoutData::setSize( int r, int c )
void QGridLayoutData::setNextPosAfter( int row, int col )
{
if ( addVertical ) {
- if ( col > nextC || col == nextC && row >= nextR ) {
+ if ( (col > nextC) || ((col == nextC) && (row >= nextR)) ) {
nextR = row + 1;
nextC = col;
if ( nextR >= rr ) {
@@ -442,7 +442,7 @@ void QGridLayoutData::setNextPosAfter( int row, int col )
}
}
} else {
- if ( row > nextR || row == nextR && col >= nextC ) {
+ if ( (row > nextR) || ((row == nextR) && (col >= nextC)) ) {
nextR = row;
nextC = col + 1;
if ( nextC >= cc ) {