Replace another hardcoded constant with a symbolic one

Use the already existing IMAGE_MARGIN_IN_REPORT_MODE instead of "5".
This commit is contained in:
Vadim Zeitlin
2019-08-27 17:11:08 +02:00
parent a87e596be7
commit 9395d7f404

View File

@@ -4466,7 +4466,7 @@ int wxListMainWindow::GetItemWidthWithImage(wxListItem * item)
{ {
int ix, iy; int ix, iy;
GetImageSize( item->GetImage(), ix, iy ); GetImageSize( item->GetImage(), ix, iy );
width += ix + 5; width += ix + IMAGE_MARGIN_IN_REPORT_MODE;
} }
if (!item->GetText().empty()) if (!item->GetText().empty())