From c55c4789656e6673655a81e78de4aa802ad7da51 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Oct 2023 15:22:40 +0200 Subject: [PATCH] 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. --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 563a68193e..3c955aeb1e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1998,7 +1998,7 @@ void wxListMainWindow::RefreshAfter( size_t lineFrom ) // even if lineFrom is invalid because it may have been (just) deleted // when we're called from DeleteItem(). size_t visibleFrom; - GetVisibleLinesRange(&visibleFrom, nullptr); + GetVisibleLinesRange(&visibleFrom, NULL); if ( lineFrom < visibleFrom ) lineFrom = visibleFrom;