All: change MILS_TO_IU_SCALING_FACTOR constant to MILS_PER_IU ( and MM_TO_IU_SCALING_FACTOR to MM_PER_IU)
Also fix bug 985654.
This commit is contained in:
@@ -41,10 +41,10 @@
|
||||
|
||||
|
||||
#if defined( PCBNEW ) || defined( CVPCB ) || defined( EESCHEMA )
|
||||
#define IU_TO_MM( x ) ( x / MM_TO_IU_SCALING_FACTOR )
|
||||
#define IU_TO_IN( x ) ( x / MILS_TO_IU_SCALING_FACTOR / 1000 )
|
||||
#define MM_TO_IU( x ) ( x * MM_TO_IU_SCALING_FACTOR )
|
||||
#define IN_TO_IU( x ) ( x * MILS_TO_IU_SCALING_FACTOR * 1000 )
|
||||
#define IU_TO_MM( x ) ( x / MM_PER_IU )
|
||||
#define IU_TO_IN( x ) ( x / MILS_PER_IU / 1000 )
|
||||
#define MM_TO_IU( x ) ( x * MM_PER_IU )
|
||||
#define IN_TO_IU( x ) ( x * MILS_PER_IU * 1000 )
|
||||
#else
|
||||
#error "Cannot resolve internal units due to no definition of EESCHEMA, CVPCB or PCBNEW."
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user