From 2d3f617b346ca84f99c7589276c4e65406b73319 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 23 Apr 2015 19:31:15 +0200 Subject: [PATCH] Fix crash in BoxSizerTestCase::IncompatibleFlags(). Reset the old window sizer pointer, otherwise it was deleted again in the window dtor (thanks buildbot for finding this one). --- tests/sizers/boxsizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sizers/boxsizer.cpp b/tests/sizers/boxsizer.cpp index 3132c5f061..813ff27f5b 100644 --- a/tests/sizers/boxsizer.cpp +++ b/tests/sizers/boxsizer.cpp @@ -416,8 +416,8 @@ void BoxSizerTestCase::IncompatibleFlags() // And now exactly the same thing in the other direction. - delete m_sizer; m_sizer = new wxBoxSizer(wxVERTICAL); + m_win->SetSizer(m_sizer); ASSERT_SIZER_INVALID_FLAGS( wxALIGN_BOTTOM,