Commit a3ea4268 authored by CHARRAS's avatar CHARRAS
Browse files

support for micro vias. small problem in zone detection solved

parent 7d676fbf
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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 )
{
	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;
}


+1 −0
Original line number Diff line number Diff line
@@ -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++;
    }
+4 −2
Original line number Diff line number Diff line
@@ -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" ) );
    }