fixed icon drawing when they have different sizes (patch 554973)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-05-28 16:44:33 +00:00
parent 943f6ad3d6
commit c2569f41b1

View File

@ -1449,8 +1449,8 @@ void wxListLineData::SetPosition( int x, int y,
if ( item->HasImage() )
{
m_gi->m_rectIcon.x = m_gi->m_rectAll.x + 4
+ (spacing - m_gi->m_rectIcon.width)/2;
m_gi->m_rectIcon.x = m_gi->m_rectAll.x + 4 +
(m_gi->m_rectAll.width - m_gi->m_rectIcon.width) / 2;
m_gi->m_rectIcon.y = m_gi->m_rectAll.y + 4;
}