From 57c12db2d91e4c62e550f6d8ea23d4a56c383790 Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Fri, 18 Jan 2019 11:43:33 +0000 Subject: [PATCH] Fix GetColumnCount() not working for wxRadioBox in wxQt Add missing SetMajorDim() call to wxRadioBox::Create(). Closes https://github.com/wxWidgets/wxWidgets/pull/1144 --- src/qt/radiobox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/radiobox.cpp b/src/qt/radiobox.cpp index b73a881a78..351251fb78 100644 --- a/src/qt/radiobox.cpp +++ b/src/qt/radiobox.cpp @@ -188,6 +188,7 @@ bool wxRadioBox::Create(wxWindow *parent, m_qtGroupBox->setLayout(horzLayout); + SetMajorDim(majorDim == 0 ? n : majorDim, style); return QtCreateControl( parent, id, pos, size, style, val, name ); }