]> git.saurik.com Git - wxWidgets.git/commitdiff
Add missing Init() call to one of wxListBox ctors in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Jun 2010 10:40:21 +0000 (10:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Jun 2010 10:40:21 +0000 (10:40 +0000)
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

index 9ccfa810a7684494b9f400658527afb824ec1d71..0d9982bab80879d9d063718270b621458e84694e 100644 (file)
@@ -59,6 +59,8 @@ public:
             const wxValidator& validator = wxDefaultValidator,
             const wxString& name = wxListBoxNameStr)
     {
+        Init();
+
         Create(parent, id, pos, size, choices, style, validator, name);
     }