got bit by a bug in freerouter

This commit is contained in:
Dick Hollenbeck 2010-09-07 12:04:39 -05:00
parent c38b25194b
commit f360d5ccb6
1 changed files with 4 additions and 4 deletions

View File

@ -444,10 +444,10 @@ PADSTACK* SPECCTRA_DB::makePADSTACK( BOARD* aBoard, D_PAD* aPad )
double ddy = scale( aPad->m_DeltaSize.y ) / 2.0; double ddy = scale( aPad->m_DeltaSize.y ) / 2.0;
// see class_pad_draw_functions.cpp which draws the trapezoid pad // see class_pad_draw_functions.cpp which draws the trapezoid pad
POINT lowerLeft( -dx - ddy, -dy + ddx ); POINT lowerLeft( -dx - ddy, -dy - ddx );
POINT upperLeft( -dx + ddy, +dy - ddx ); POINT upperLeft( -dx + ddy, +dy + ddx );
POINT upperRight( +dx - ddy, +dy + ddx ); POINT upperRight( +dx - ddy, +dy - ddx );
POINT lowerRight( +dx + ddy, -dy - ddx ); POINT lowerRight( +dx + ddy, -dy + ddx );
lowerLeft += dsnOffset; lowerLeft += dsnOffset;
upperLeft += dsnOffset; upperLeft += dsnOffset;