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).
This commit is contained in:
Vadim Zeitlin
2015-04-23 19:31:15 +02:00
parent ef96bd6af1
commit 2d3f617b34

View File

@@ -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,