From: Vadim Zeitlin Date: Thu, 10 Jun 2010 10:40:21 +0000 (+0000) Subject: Add missing Init() call to one of wxListBox ctors in wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dca0afc73cbd2a278f9d48bf75ef381b11b5aa00?ds=inline 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 --- 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); }