Skip to content

Commit

Permalink
fix lv_win_clean()
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Oct 13, 2020
1 parent 489f426 commit ddb4ae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Skip objects in groups if they are in disabled state
- Fix dropdown selection with RTL basedirection
- Fix rectangle border drawing with large width
- Fix `lv_win_clean()`

## v7.6.1 (06.10.2020)

Expand Down
3 changes: 2 additions & 1 deletion src/lv_widgets/lv_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ lv_obj_t * lv_win_create(lv_obj_t * par, const lv_obj_t * copy)
void lv_win_clean(lv_obj_t * win)
{
LV_ASSERT_OBJ(win, LV_OBJX_NAME);
lv_win_ext_t * ext = lv_obj_get_ext_attr(win);

lv_obj_t * scrl = lv_page_get_scrollable(win);
lv_obj_t * scrl = lv_page_get_scrollable(ext->page);
lv_obj_clean(scrl);
}

Expand Down

0 comments on commit ddb4ae8

Please sign in to comment.