1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

lv_tileview_set_valid_positions: minor fix

This commit is contained in:
Gabor Kiss-Vamosi 2019-12-02 09:19:51 +01:00
parent 0b12f934ec
commit 6e8a4eeed4

View File

@ -183,7 +183,7 @@ void lv_tileview_set_valid_positions(lv_obj_t * tileview, const lv_point_t valid
/*If valid pos. is selected do nothing*/
uint16_t i;
for(i = 0; i < valid_pos_cnt; i++) {
if(valid_pos->x == ext->act_id.x && valid_pos->y == ext->act_id.y) {
if(valid_pos[i].x == ext->act_id.x && valid_pos[i].y == ext->act_id.y) {
return;
}
}