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:
@@ -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__
|
||||
|
Reference in New Issue
Block a user