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:
parent
96bfbfca9b
commit
cef3988e30
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue