From 9395d7f404cbf8d217ec9698dcb7b34eeba6781c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 27 Aug 2019 17:11:08 +0200 Subject: [PATCH] Replace another hardcoded constant with a symbolic one Use the already existing IMAGE_MARGIN_IN_REPORT_MODE instead of "5". --- 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 aa3da04f48..5b7c511bd2 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4466,7 +4466,7 @@ int wxListMainWindow::GetItemWidthWithImage(wxListItem * item) { int ix, iy; GetImageSize( item->GetImage(), ix, iy ); - width += ix + 5; + width += ix + IMAGE_MARGIN_IN_REPORT_MODE; } if (!item->GetText().empty())