Update tree control layout in EditLabel() for wxOSX too.
A special preprocessor check for OS X prevented the control from being relaid out correctly in EditLabel() there, which resulted in problems when trying to edit a just added item. Simply remove this check for OS X (and also MSW but this is less important as this version of the control is almost never used there anyhow) to fix it. Closes #11179. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3483,11 +3483,7 @@ wxTextCtrl *wxGenericTreeCtrl::EditLabel(const wxTreeItemId& item,
|
||||
// question might just have been added and no screen
|
||||
// update taken place.
|
||||
if ( m_dirty )
|
||||
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
||||
Update();
|
||||
#else
|
||||
DoDirtyProcessing();
|
||||
#endif
|
||||
|
||||
// TODO: use textCtrlClass here to create the control of correct class
|
||||
m_textCtrl = new wxTreeTextCtrl(this, itemEdit);
|
||||
|
Reference in New Issue
Block a user