Skip to content

Commit

Permalink
Fix null pointer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas authored and madame-rachelle committed Feb 2, 2024
1 parent 0b54e7e commit 989123b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/ZWidget/src/core/widget.cpp
Expand Up @@ -563,8 +563,10 @@ void Widget::OnWindowMouseMove(const Point& pos)
do
{
widget->OnMouseMove(widget->MapFrom(this, pos));
if (widget == this)
break;
widget = widget->Parent();
} while (widget != this);
} while (widget);
}
}

Expand Down

0 comments on commit 989123b

Please sign in to comment.