[Gui] revert the revert of setting unit factor for F/m

- see https://github.com/FreeCAD/FreeCAD/commit/2f0824be#r81159352
This commit is contained in:
Uwe
2022-08-14 22:58:12 +02:00
parent 4614b0cf59
commit 94cc1b867a
2 changed files with 12 additions and 0 deletions

View File

@@ -435,6 +435,12 @@ QString UnitsSchemaInternal::schemaTranslate(const Quantity &quant, double &fact
factor = 1e6;
}
}
else if (unit == Unit::VacuumPermittivity) {
unitString = QString::fromLatin1("F/m");
// FIXME: this should be 1e-9 because unit has L^-3
// see also https://github.com/FreeCAD/FreeCAD/commit/9db5dff7#r81159352
factor = 1;
}
else if (unit == Unit::Frequency) {
if (UnitValue < 1e3) {
unitString = QString::fromLatin1("Hz");