diff --git a/cvpcb/dialogs/fp_conflict_assignment_selector.cpp b/cvpcb/dialogs/fp_conflict_assignment_selector.cpp index 15df08cd49..35dcd8f5a5 100644 --- a/cvpcb/dialogs/fp_conflict_assignment_selector.cpp +++ b/cvpcb/dialogs/fp_conflict_assignment_selector.cpp @@ -34,11 +34,11 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR( wxWindow* aParent ) : DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE( aParent ) { - m_listFp->InsertColumn( 0, _( "Ref" ) ); - m_listFp->InsertColumn( 1, _( "Schematic assignment" ) ); - m_listFp->InsertColumn( 2, wxT( "<=" ) ); - m_listFp->InsertColumn( 3, wxT( "=>" ) ); - m_listFp->InsertColumn( 4, _( "Cmp file assignment" ) ); + m_listFp->AppendColumn( _( "Ref" ) ); + m_listFp->AppendColumn( _( "Schematic assignment" ) ); + m_listFp->AppendColumn( wxT( "<=" ) ); + m_listFp->AppendColumn( wxT( "=>" ) ); + m_listFp->AppendColumn( _( "Cmp file assignment" ) ); m_lineCount = 0; } @@ -46,29 +46,12 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR( void DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::Add( const wxString& aRef, const wxString& aFpSchName, const wxString& aFpCmpName ) { - wxListItem item; + long idx = m_listFp->InsertItem(m_lineCount, aRef ); - item.SetId( m_lineCount ); - item.SetText( aRef ); - item.SetColumn( COL_REF ); - m_listFp->InsertItem( item ); - - item.SetText( aFpSchName ); - item.SetColumn( COL_FPSCH ); - m_listFp->SetItem( item ); - - - item.SetText( wxT("") ); - item.SetColumn( COL_SELSCH ); - m_listFp->SetItem( item ); - - item.SetText( wxT("X") ); - item.SetColumn( COL_SELCMP ); - m_listFp->SetItem( item ); - - item.SetText( aFpCmpName ); - item.SetColumn( COL_FPCMP ); - m_listFp->SetItem( item ); + m_listFp->SetItem(idx, COL_FPSCH, aFpSchName ); + m_listFp->SetItem(idx, COL_SELSCH, wxT("") ); + m_listFp->SetItem(idx, COL_SELCMP, wxT("X") ); + m_listFp->SetItem(idx, COL_FPCMP, aFpCmpName ); m_lineCount ++; } diff --git a/cvpcb/dialogs/fp_conflict_assignment_selector_base.cpp b/cvpcb/dialogs/fp_conflict_assignment_selector_base.cpp index e2a762d36f..8f0d9f7f44 100644 --- a/cvpcb/dialogs/fp_conflict_assignment_selector_base.cpp +++ b/cvpcb/dialogs/fp_conflict_assignment_selector_base.cpp @@ -20,7 +20,7 @@ DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR_BASE::DIALOG_FP_CONFLICT_ASSIGNMENT_SELEC m_staticTextInfo->Wrap( -1 ); bSizerMain->Add( m_staticTextInfo, 0, wxALL|wxEXPAND, 5 ); - m_listFp = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_ICON|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES ); + m_listFp = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES ); bSizerMain->Add( m_listFp, 1, wxALL|wxEXPAND, 5 ); m_sdbSizer = new wxStdDialogButtonSizer(); diff --git a/cvpcb/dialogs/fp_conflict_assignment_selector_base.fbp b/cvpcb/dialogs/fp_conflict_assignment_selector_base.fbp index ef18228d74..fb57694e64 100644 --- a/cvpcb/dialogs/fp_conflict_assignment_selector_base.fbp +++ b/cvpcb/dialogs/fp_conflict_assignment_selector_base.fbp @@ -225,7 +225,7 @@ Resizable 1 - wxLC_HRULES|wxLC_ICON|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES + wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES 0