diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 09354910b6..9faacbc8c8 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4027,7 +4027,7 @@ void wxListMainWindow::InsertItem( wxListItem &item ) wxListLineData *line = new wxListLineData(this); line->SetItem( item.m_col, item ); - if ( item.m_mask & wxLIST_MASK_IMAGE && item.GetImage() != -1) + if ((item.m_mask & wxLIST_MASK_IMAGE) && item.GetImage() != -1) { // Reset the buffered height if it's not big enough for the new image. if (m_small_image_list)