Browse Source

Cvpcb: minor fixes.

pull/1/head
jean-pierre charras 11 years ago
parent
commit
960ea566d6
  1. 9
      cvpcb/autosel.cpp
  2. 2
      cvpcb/dialogs/dialog_config_equfiles.cpp
  3. 2
      cvpcb/dialogs/dialog_config_equfiles_base.cpp
  4. 2
      cvpcb/dialogs/dialog_config_equfiles_base.fbp

9
cvpcb/autosel.cpp

@ -220,9 +220,12 @@ void CVPCB_MAINFRAME::AutomaticFootprintMatching( wxCommandEvent& event )
unsigned next = idx+1;
unsigned previous = idx-1;
if( next < equiv_List.size() && previous >= 0 &&
( equivItem.m_ComponentValue == equiv_List[next].m_ComponentValue ||
equivItem.m_ComponentValue == equiv_List[previous].m_ComponentValue ) )
if( next < equiv_List.size() &&
equivItem.m_ComponentValue == equiv_List[next].m_ComponentValue )
equ_is_unique = false;
if( previous >= 0 &&
equivItem.m_ComponentValue == equiv_List[previous].m_ComponentValue )
equ_is_unique = false;
// If the equivalence is unique, no ambiguity: use the association

2
cvpcb/dialogs/dialog_config_equfiles.cpp

@ -277,7 +277,7 @@ void DIALOG_CONFIG_EQUFILES::OnAddFiles( wxCommandEvent& event )
else
{
wxString msg;
msg.Printf( _( "File '%s'already in list" ), equFilename.GetData() );
msg.Printf( _( "File '%s' already exists in list" ), equFilename.GetData() );
DisplayError( this, msg );
}
}

2
cvpcb/dialogs/dialog_config_equfiles_base.cpp

@ -17,7 +17,7 @@ DIALOG_CONFIG_EQUFILES_BASE::DIALOG_CONFIG_EQUFILES_BASE( wxWindow* parent, wxWi
bMainSizer = new wxBoxSizer( wxVERTICAL );
wxStaticBoxSizer* sbEquivChoiceSizer;
sbEquivChoiceSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Footprint alias files (.equ files)") ), wxHORIZONTAL );
sbEquivChoiceSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Footprint/Component equ files (.equ files)") ), wxHORIZONTAL );
wxBoxSizer* bSizerFlist;
bSizerFlist = new wxBoxSizer( wxVERTICAL );

2
cvpcb/dialogs/dialog_config_equfiles_base.fbp

@ -99,7 +99,7 @@
<property name="proportion">1</property>
<object class="wxStaticBoxSizer" expanded="1">
<property name="id">wxID_ANY</property>
<property name="label">Footprint alias files (.equ files)</property>
<property name="label">Footprint/Component equ files (.equ files)</property>
<property name="minimum_size"></property>
<property name="name">sbEquivChoiceSizer</property>
<property name="orient">wxHORIZONTAL</property>

Loading…
Cancel
Save