support for micro vias. small problem in zone detection solved

This commit is contained in:
CHARRAS 2008-01-18 09:15:21 +00:00
parent 7d676fbfd3
commit a3ea4268df
3 changed files with 13 additions and 4 deletions

View File

@ -17,10 +17,16 @@ using namespace std;
/* Local Functions */
/* Compare function used for sorting holes by increasing diameter value */
/* Compare function used for sorting holes by increasing diameter value
* and X value
*/
static bool CmpHoleDiameterValue( const HOLE_INFO& a, const HOLE_INFO& b )
{
return a.m_Hole_Diameter < b.m_Hole_Diameter;
if ( a.m_Hole_Diameter != b.m_Hole_Diameter )
return a.m_Hole_Diameter < b.m_Hole_Diameter;
if ( a.m_Hole_Pos_X != b.m_Hole_Pos_X )
return a.m_Hole_Pos_X < b.m_Hole_Pos_X;
return a.m_Hole_Pos_Y < b.m_Hole_Pos_Y;
}

View File

@ -522,6 +522,7 @@ int WinEDA_DrillFrame::Create_Drill_File_EXCELLON( std::vector<HOLE_INFO>& aHol
Gen_Line_EXCELLON( line, xt, yt );
else
Gen_Line_EXCELLON( line, xt * 10, yt * 10 );
fputs( line, dest );
fputs( "G05\n", dest );
holes_count++;
}

View File

@ -684,8 +684,10 @@ WinEDAChoiceBox* WinEDA_PcbFrame::ReCreateLayerBox( WinEDA_Toolbar* parent )
jj++;
}
}
int lchar = m_SelLayerBox->GetFont().GetPointSize();
m_SelLayerBox->SetSize(wxSize(lenght * lchar,-1));
// Test me:
// int lchar = m_SelLayerBox->GetFont().GetPointSize();
// m_SelLayerBox->SetSize(wxSize(lenght * lchar,-1));
m_SelLayerBox->SetToolTip( _( "+/- to switch" ) );
}