From 9622023abcbe63a5e16982197c2a7703fe113168 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Thu, 9 Oct 2014 04:44:54 +0000 Subject: [PATCH] Fix invalid listctrl imagelist assert in wxQT This reverts the bug introduced in r77935, now the list control sample works again. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/qt/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/listctrl.cpp b/src/qt/listctrl.cpp index f1b782ee59..9c3ccbc2eb 100644 --- a/src/qt/listctrl.cpp +++ b/src/qt/listctrl.cpp @@ -316,7 +316,7 @@ bool wxListCtrl::SetItem(wxListItem& info) { if (info.m_image >= 0) { - wxImageList *imglst = GetImageList(wxIMAGE_LIST_NORMAL); + wxImageList *imglst = GetImageList(InReportView() ? wxIMAGE_LIST_SMALL : wxIMAGE_LIST_NORMAL); wxCHECK_MSG(imglst, false, "invalid listctrl imagelist"); const wxBitmap* bitmap = imglst->GetBitmapPtr(info.m_image); if (bitmap != NULL)