From dca0afc73cbd2a278f9d48bf75ef381b11b5aa00 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Jun 2010 10:40:21 +0000 Subject: [PATCH] Add missing Init() call to one of wxListBox ctors in wxMSW. Overloaded ctor taking wxArrayString didn't call Init() so the wxListBox fields were not initialized. Fix it by adding the Init() call. Closes #12138. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/listbox.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/msw/listbox.h b/include/wx/msw/listbox.h index 9ccfa810a7..0d9982bab8 100644 --- a/include/wx/msw/listbox.h +++ b/include/wx/msw/listbox.h @@ -59,6 +59,8 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr) { + Init(); + Create(parent, id, pos, size, choices, style, validator, name); } -- 2.45.2