From 758bd6fa6ea7400c6fc472ff456cfb16b3e1c958 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 29 Sep 2019 23:41:20 +0200 Subject: [PATCH] Create test frame in menu test in more predetermined position Create this frame as child of the main application window to make it appear near it, instead of in a more or less random location. This facilitates debugging, but doesn't really change anything otherwise. --- tests/menu/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/menu/menu.cpp b/tests/menu/menu.cpp index 2a76f94c38..eb52235b22 100644 --- a/tests/menu/menu.cpp +++ b/tests/menu/menu.cpp @@ -138,7 +138,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( MenuTestCase, "MenuTestCase" ); void MenuTestCase::CreateFrame() { - m_frame = new wxFrame(NULL, wxID_ANY, "test frame"); + m_frame = new wxFrame(wxTheApp->GetTopWindow(), wxID_ANY, "test frame"); wxMenu *fileMenu = new wxMenu; wxMenu *helpMenu = new wxMenu;