From 598c62a26715e3e6ebdb1c9485b437fba649a40f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Dec 2017 13:46:32 +0100 Subject: [PATCH] Don't change wxCompositeWindow size from SetLayoutDirection() Remove wxSIZE_AUTO from the SetSize() call, this was completely unnecessary and unexpectedly (and wrongly) resized composite windows managed by sizers as SetLayoutDirection() side-effect. --- include/wx/compositewin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index b443eaceb5..48d0ae344e 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -109,7 +109,7 @@ public: // SetLayoutDirection(wxLayout_Default) wouldn't result in a re-layout // neither, but then we're not supposed to be called with it at all. if ( dir != wxLayout_Default ) - this->SetSize(-1, -1, -1, -1, wxSIZE_AUTO | wxSIZE_FORCE); + this->SetSize(-1, -1, -1, -1, wxSIZE_FORCE); } #if wxUSE_TOOLTIPS