Minor code cleanup.
This commit is contained in:
parent
82da739786
commit
edecfaa433
|
@ -702,8 +702,8 @@ void DIALOG_PAD_PROPERTIES::displayPrimitivesList()
|
||||||
{
|
{
|
||||||
const std::shared_ptr<DRAWSEGMENT>& primitive = m_primitives[ii];
|
const std::shared_ptr<DRAWSEGMENT>& primitive = m_primitives[ii];
|
||||||
|
|
||||||
for( unsigned jj = 0; jj < 5; ++jj )
|
for( wxString& s : bs_info )
|
||||||
bs_info[jj].Empty();
|
s.Empty();
|
||||||
|
|
||||||
bs_info[4] = _( "width " ) + MessageTextFromValue( m_units, primitive->GetWidth(), true );
|
bs_info[4] = _( "width " ) + MessageTextFromValue( m_units, primitive->GetWidth(), true );
|
||||||
|
|
||||||
|
@ -753,10 +753,8 @@ void DIALOG_PAD_PROPERTIES::displayPrimitivesList()
|
||||||
m_listCtrlPrimitives->SetItemData( tmp, ii );
|
m_listCtrlPrimitives->SetItemData( tmp, ii );
|
||||||
|
|
||||||
for( int jj = 0, col = 0; jj < 5; ++jj )
|
for( int jj = 0, col = 0; jj < 5; ++jj )
|
||||||
{
|
|
||||||
m_listCtrlPrimitives->SetItem( tmp, col++, bs_info[jj] );
|
m_listCtrlPrimitives->SetItem( tmp, col++, bs_info[jj] );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Now columns are filled, ensure correct width of columns
|
// Now columns are filled, ensure correct width of columns
|
||||||
for( unsigned ii = 0; ii < 5; ++ii )
|
for( unsigned ii = 0; ii < 5; ++ii )
|
||||||
|
|
Loading…
Reference in New Issue