desktop/reserved: do not crash on invalid box init (#13880)

ref #13879
This commit is contained in:
Vaxry
2026-03-28 21:38:10 +00:00
committed by GitHub
parent eb10ecf738
commit 83d3babd4e
4 changed files with 24 additions and 2 deletions
+3
View File
@@ -49,4 +49,7 @@ TEST(Desktop, reservedArea) {
EXPECT_EQ(d.top(), 0);
EXPECT_EQ(d.right(), 0);
EXPECT_EQ(d.bottom(), 0);
Desktop::CReservedArea e{CBox{20, 30, 900, 900}, CBox{0, 0, 100, 100}};
EXPECT_EQ(e.ok(), false);
}