Attempt to fix locale issue with decimal separator in rules.
This commit is contained in:
parent
6c74658a98
commit
b42395ec8d
|
@ -865,7 +865,7 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
value = wxAtof( *node->value.str );
|
value = DoubleValueFromString( EDA_UNITS::MILLIMETRES, *node->value.str );
|
||||||
}
|
}
|
||||||
|
|
||||||
node->SetUop( TR_UOP_PUSH_VALUE, value );
|
node->SetUop( TR_UOP_PUSH_VALUE, value );
|
||||||
|
|
|
@ -361,9 +361,9 @@ public:
|
||||||
|
|
||||||
switch( unitId )
|
switch( unitId )
|
||||||
{
|
{
|
||||||
case 0: return Mils2iu( v );
|
case 0: return DoubleValueFromString( EDA_UNITS::INCHES, aString, true );
|
||||||
case 1: return Millimeter2iu( v );
|
case 1: return DoubleValueFromString( EDA_UNITS::MILLIMETRES, aString );
|
||||||
case 2: return Mils2iu( v * 1000.0 );
|
case 2: return DoubleValueFromString( EDA_UNITS::INCHES, aString, false );
|
||||||
default: return v;
|
default: return v;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue