Fix recently introduced use of nullptr in wxGenericListCtrl

Correct the too hastily backported change of cb69e76897 (Fix not
refreshing generic wxListCtrl after deleting last item, 2023-10-06)
and use NULL instead of nullptr in this branch.
This commit is contained in:
Vadim Zeitlin 2023-10-07 15:22:40 +02:00
parent ee8dfc6267
commit c55c478965

View File

@ -1998,7 +1998,7 @@ void wxListMainWindow::RefreshAfter( size_t lineFrom )
// even if lineFrom is invalid because it may have been (just) deleted // even if lineFrom is invalid because it may have been (just) deleted
// when we're called from DeleteItem(). // when we're called from DeleteItem().
size_t visibleFrom; size_t visibleFrom;
GetVisibleLinesRange(&visibleFrom, nullptr); GetVisibleLinesRange(&visibleFrom, NULL);
if ( lineFrom < visibleFrom ) if ( lineFrom < visibleFrom )
lineFrom = visibleFrom; lineFrom = visibleFrom;