summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2024-05-23 18:22:01 +0900
committerOBATA Akio <obache@wizdas.com>2024-05-23 18:22:01 +0900
commit729c01ffb2d99f0f088d31860b71a202850a9688 (patch)
tree48444201a0dd45c15ec72b0d0dd74306225643fa /src
parent9ae164eb837f7a9135fecca24b8c8e6528aef1b7 (diff)
downloadtqt3-729c01ffb2d99f0f088d31860b71a202850a9688.tar.gz
tqt3-729c01ffb2d99f0f088d31860b71a202850a9688.zip
Fix a missing `if` clause guard
It was mismatched with indents and sibling `if` clause cases. Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'src')
-rw-r--r--src/table/qtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table/qtable.cpp b/src/table/qtable.cpp
index c6ba6ddb2..bf27224c8 100644
--- a/src/table/qtable.cpp
+++ b/src/table/qtable.cpp
@@ -4101,11 +4101,12 @@ void TQTable::fixCell( int &row, int &col, int key )
row = curRow;
} else if ( key == Key_Up ||
key == Key_Prior ||
- key == Key_Home )
+ key == Key_Home ) {
while ( row >= 0 && rowHeight( row ) <= 0 )
row--;
if ( rowHeight( row ) <= 0 )
row = curRow;
+ }
} else if ( columnWidth( col ) <= 0 ) {
if ( key == Key_Left ) {
while ( col >= 0 && columnWidth( col ) <= 0 )