Removed intermediate wxPanel from wxPropertyGrid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -558,7 +558,7 @@ public:
|
||||
|
||||
wxPropertyGrid* GetGrid() const
|
||||
{
|
||||
wxPropertyGrid* pg = wxDynamicCast(GetParent()->GetParent(),
|
||||
wxPropertyGrid* pg = wxDynamicCast(GetParent(),
|
||||
wxPropertyGrid);
|
||||
wxASSERT(pg);
|
||||
return pg;
|
||||
@@ -1377,7 +1377,7 @@ void wxSimpleCheckBox::SetValue( int value )
|
||||
|
||||
wxCommandEvent evt(wxEVT_COMMAND_CHECKBOX_CLICKED,GetParent()->GetId());
|
||||
|
||||
wxPropertyGrid* propGrid = (wxPropertyGrid*) GetParent()->GetParent();
|
||||
wxPropertyGrid* propGrid = (wxPropertyGrid*) GetParent();
|
||||
wxASSERT( propGrid->IsKindOf(CLASSINFO(wxPropertyGrid)) );
|
||||
propGrid->HandleCustomEditorEvent(evt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user