ui: bound check in draw_horz in ThreadView

embed
Manos Pitsidianakis 2019-08-17 12:26:32 +03:00
parent e5f8714162
commit c0dcd7254a
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 5 additions and 1 deletions

View File

@ -683,7 +683,11 @@ impl ThreadView {
return;
}
let mid = get_y(upper_left) + total_rows - bottom_entity_rows;
let mut mid = get_y(upper_left) + total_rows - bottom_entity_rows;
if mid >= get_y(bottom_right) {
mid = get_y(bottom_right) / 2;
}
let mid = mid;
/* First draw the thread subject on the first row */
let y = {