Simplify getting current wxPG editor control
We can just return the pointer, whether it is NULL or not.
This commit is contained in:
@@ -1776,12 +1776,7 @@ wxPGCheckBoxEditor::~wxPGCheckBoxEditor()
|
||||
|
||||
wxWindow* wxPropertyGrid::GetEditorControl() const
|
||||
{
|
||||
wxWindow* ctrl = m_wndEditor;
|
||||
|
||||
if ( !ctrl )
|
||||
return ctrl;
|
||||
|
||||
return ctrl;
|
||||
return m_wndEditor;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user