From 0455e25302735681c7673ed52b9d76310f9236f8 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 2 Sep 2021 19:26:29 +0200 Subject: [PATCH] Set window postion explicitly in clipping box test for wxClientDC Set window position explictly to (0, 0) to avoid unwanted clipping if defualt position selected by the system would place it (partially) outside of the parent window. --- tests/graphics/clippingbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index 42bb5c66e2..d347c749e6 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -3657,7 +3657,7 @@ TEST_CASE("ClippingBoxTestCase::wxClientDC", "[clip][dc][clientdc]") // and the window cannot be resized - see wxTopLevelWindowBase::Layout(). wxScopedPtr w0(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY)); #endif // wxGTK 2 - wxScopedPtr win(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY)); + wxScopedPtr win(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY, wxPoint(0, 0))); win->SetClientSize(s_dcSize);