Fix recursion in calling const getters
We have to explicitly call non-const getter to avoid recursive calls of the const getter.
This commit is contained in:
@@ -412,7 +412,7 @@ public:
|
||||
|
||||
const wxPGProperty* GetLastItem( int flags = wxPG_ITERATE_DEFAULT ) const
|
||||
{
|
||||
return GetLastItem(flags);
|
||||
return const_cast<wxPropertyGridPageState*>(this)->GetLastItem(flags);
|
||||
}
|
||||
|
||||
// Returns currently selected property.
|
||||
|
Reference in New Issue
Block a user