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:
jean-pierre charras
2012-04-26 22:21:31 +02:00
parent a00df5b330
commit 3b671e09d1
22 changed files with 358 additions and 358 deletions
+6 -6
View File
@@ -19,11 +19,11 @@
#include <pcbnew_id.h>
#define ZOOM_FACTOR( x ) ( x * DECIMILS_TO_IU_SCALING_FACTOR )
#define DMIL_GRID( x ) wxRealPoint( x * DECIMILS_TO_IU_SCALING_FACTOR,\
x * DECIMILS_TO_IU_SCALING_FACTOR )
#define MM_GRID( x ) wxRealPoint( x * MM_TO_IU_SCALING_FACTOR,\
x * MM_TO_IU_SCALING_FACTOR )
#define ZOOM_FACTOR( x ) ( x * DECIMILS_PER_IU )
#define DMIL_GRID( x ) wxRealPoint( x * DECIMILS_PER_IU,\
x * DECIMILS_PER_IU )
#define MM_GRID( x ) wxRealPoint( x * MM_PER_IU,\
x * MM_PER_IU )
/**
@@ -133,7 +133,7 @@ PCB_SCREEN::~PCB_SCREEN()
int PCB_SCREEN::MilsToIuScalar()
{
return (int)MILS_TO_IU_SCALING_FACTOR;
return (int)MILS_PER_IU;
}