diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index c5d4b0ec92..799227b28f 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -2462,7 +2462,7 @@ wxPGProperty* wxPGProperty::GetItemAtY( unsigned int y, unsigned int lh, unsigned int* nextItemY ) const { - wxASSERT( nextItemY ); + wxCHECK( nextItemY, nullptr ); // Linear search at the moment //