Fix creating wxPGChoiceAndButtonEditor controls

Since wxPGChoiceAndButtonEditor derives from wxPGChoiceEditor so making
a call to the base class virtual function CreateControls() from the child
CreateControls() is legitimate and more clean than calling to this
function in the another instance of the base class wxPGChoiceEditor
(which may not exists).
This commit is contained in:
Artur Wieczorek
2020-02-09 20:34:09 +01:00
parent 9dbd3b4946
commit 687f679705

View File

@@ -1318,7 +1318,7 @@ wxPGWindowList wxPGChoiceAndButtonEditor::CreateControls( wxPropertyGrid* propGr
ch_sz.x -= wxPG_TEXTCTRL_AND_BUTTON_SPACING;
#endif
wxWindow* ch = wxPGEditor_Choice->CreateControls(propGrid,property,
wxWindow* ch = wxPGChoiceEditor::CreateControls(propGrid,property,
pos,ch_sz).m_primary;
#ifdef __WXMSW__