Merge pull request #12837 from sonninnos/ozone-check

(Ozone) Ensure the existence of values used in selection calculation
This commit is contained in:
Autechre 2021-08-21 14:33:14 +02:00 committed by GitHub
commit 21d3c13ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,6 +265,9 @@ void ozone_update_scroll(ozone_handle_t *ozone, bool allow_animation, ozone_node
video_driver_get_size(NULL, &video_info_height);
if (!node)
return;
current_selection_middle_onscreen =
ozone->dimensions.header_height +
ozone->dimensions.entry_padding_vertical +