diff --git a/src/univ/listbox.cpp b/src/univ/listbox.cpp index 7d3a53fda7..d73dd34d91 100644 --- a/src/univ/listbox.cpp +++ b/src/univ/listbox.cpp @@ -635,7 +635,7 @@ wxCoord wxListBox::GetLineHeight() const wxCoord wxListBox::GetMaxWidth() const { - if ( m_maxWidth == -1 ) + if ( m_maxWidth == 0 ) { wxCoord width; size_t count = m_strings.GetCount();