diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 55f461540d..c60d83f45e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1707,7 +1707,7 @@ wxListLineData *wxListMainWindow::GetDummyLine() const // don't waste extra memory -- there never going to be anything // else/more in this array - self->m_lines.shrink_to_fit(); + wxShrinkToFit(self->m_lines); } return m_lines[0];