Use more relevant macros in wxPropertyGrid
This commit is contained in:
@@ -2041,7 +2041,7 @@ public:
|
|||||||
|
|
||||||
wxPGProperty* GetMainParent() const
|
wxPGProperty* GetMainParent() const
|
||||||
{
|
{
|
||||||
wxASSERT(m_property);
|
wxCHECK_MSG(m_property, NULL, "Property cannot be NULL");
|
||||||
return m_property->GetMainParent();
|
return m_property->GetMainParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5618,7 +5618,7 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
|
|||||||
// Handles key event when editor control is not focused.
|
// Handles key event when editor control is not focused.
|
||||||
//
|
//
|
||||||
|
|
||||||
wxCHECK2(!IsFrozen(), return);
|
wxCHECK_RET(!IsFrozen(), "wxPropertyGrid shouldn't be frozen");
|
||||||
|
|
||||||
// Traversal between items, collapsing/expanding, etc.
|
// Traversal between items, collapsing/expanding, etc.
|
||||||
wxPGProperty* selected = GetSelection();
|
wxPGProperty* selected = GetSelection();
|
||||||
|
|||||||
Reference in New Issue
Block a user