ui: bound check in draw_horz in ThreadView

pull/234/head
Manos Pitsidianakis 5 years ago
parent e5f8714162
commit c0dcd7254a
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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 = {

Loading…
Cancel
Save