summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2024-05-23 18:22:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-23 19:02:15 +0900
commitb634a4f66f9f2f0785f03719ee1c33612880d76c (patch)
tree2eb5c6ed15afa319b6f18a390bb639c64cee1746
parentcd45e22a58c274f0ca089f722d9984bb2ae446c6 (diff)
downloadtqt3-r14.1.x.tar.gz
tqt3-r14.1.x.zip
Fix a missing `if` clause guardr14.1.x
It was mismatched with indents and sibling `if` clause cases. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 729c01ffb2d99f0f088d31860b71a202850a9688)
-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 c6ba6ddb..bf27224c 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 )