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* wxPropertyGrid::GetEditorControl() const
|
||||||
{
|
{
|
||||||
wxWindow* ctrl = m_wndEditor;
|
return m_wndEditor;
|
||||||
|
|
||||||
if ( !ctrl )
|
|
||||||
return ctrl;
|
|
||||||
|
|
||||||
return ctrl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user