diff options
author | Shannon Booth <shannon.ml.booth@gmail.com> | 2020-02-11 21:16:43 +1300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-11 11:00:09 +0100 |
commit | cef3988e301e6de61b2e2d6fb083f3d6d950f160 (patch) | |
tree | 1344b08845072e153f7db7f2df5f4d676dd5acd9 /Servers/WindowServer/Window.cpp | |
parent | 96bfbfca9b6323c58673b3ec851771f8972afc96 (diff) | |
download | serenity-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.cpp | 1 |
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; |