summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/Window.cpp
diff options
context:
space:
mode:
authorShannon Booth <shannon.ml.booth@gmail.com>2020-02-11 21:16:43 +1300
committerAndreas Kling <kling@serenityos.org>2020-02-11 11:00:09 +0100
commitcef3988e301e6de61b2e2d6fb083f3d6d950f160 (patch)
tree1344b08845072e153f7db7f2df5f4d676dd5acd9 /Servers/WindowServer/Window.cpp
parent96bfbfca9b6323c58673b3ec851771f8972afc96 (diff)
downloadserenity-cef3988e301e6de61b2e2d6fb083f3d6d950f160.zip
WindowServer: Assert that a window is not being set as empty
Diffstat (limited to 'Servers/WindowServer/Window.cpp')
-rw-r--r--Servers/WindowServer/Window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Servers/WindowServer/Window.cpp b/Servers/WindowServer/Window.cpp
index 5455d53b1d..a25cc5aa0c 100644
--- a/Servers/WindowServer/Window.cpp
+++ b/Servers/WindowServer/Window.cpp
@@ -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;