diff --git a/src/Base/UnitsSchemaInternal.cpp b/src/Base/UnitsSchemaInternal.cpp index b878072f51..fcdb4b3f49 100644 --- a/src/Base/UnitsSchemaInternal.cpp +++ b/src/Base/UnitsSchemaInternal.cpp @@ -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"); diff --git a/src/Base/UnitsSchemaMKS.cpp b/src/Base/UnitsSchemaMKS.cpp index 7e51015fed..669d4dea9d 100644 --- a/src/Base/UnitsSchemaMKS.cpp +++ b/src/Base/UnitsSchemaMKS.cpp @@ -383,6 +383,12 @@ QString UnitsSchemaMKS::schemaTranslate(const Quantity &quant, double &factor, Q 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::Work) { if (UnitValue < 1.602176634e-10) { unitString = QString::fromLatin1("eV");