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:
parent
943f6ad3d6
commit
c2569f41b1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user