fix(window): fix crash in case LVGL parent is NULL
This commit is contained in:
+1
-1
@@ -513,7 +513,7 @@ void Window::paintChildren(BitmapBuffer * dc, std::list<Window *>::iterator it)
|
|||||||
void Window::bringToTop()
|
void Window::bringToTop()
|
||||||
{
|
{
|
||||||
attach(parent); // does a detach + attach
|
attach(parent); // does a detach + attach
|
||||||
if (lvobj) lv_obj_move_foreground(lvobj);
|
if (lvobj && lv_obj_get_parent(lvobj)) lv_obj_move_foreground(lvobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::checkEvents()
|
void Window::checkEvents()
|
||||||
|
|||||||
Reference in New Issue
Block a user