Fix centering of images in wxListCtrl items when selected
Closes #11331.
This commit is contained in:
committed by
Vadim Zeitlin
parent
b889f6897b
commit
e0ef3830c1
@@ -552,8 +552,7 @@ void wxListLineData::SetPosition( int x, int y, int spacing )
|
||||
|
||||
if ( item->HasImage() )
|
||||
{
|
||||
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.x = m_gi->m_rectAll.x + 4;
|
||||
m_gi->m_rectIcon.y = m_gi->m_rectAll.y + 4;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user