1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:28:13 +00:00

WindowServer: Assert that a window is not being set as empty

This commit is contained in:
Shannon Booth 2020-02-11 21:16:43 +13:00 committed by Andreas Kling
parent 96bfbfca9b
commit cef3988e30
2 changed files with 2 additions and 0 deletions

View file

@ -96,6 +96,7 @@ void Window::set_title(const String& title)
void Window::set_rect(const Gfx::Rect& rect)
{
ASSERT(!rect.is_empty());
Gfx::Rect old_rect;
if (m_rect == rect)
return;