Skip to content

Commit 851a675

Browse files
committed
Added missing case for KilogramForcePerSquareCentimeter in UnitConverter.TryConvertPressure().
1 parent f57f2c4 commit 851a675

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Src/UnitsNet/UnitConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ private static bool TryConvertPressure(double value, Unit fromUnit, Unit toUnit,
178178
return TryConvert(Pressure.FromNewtonsPerSquareMillimeter(value), toUnit, out newValue);
179179
case Unit.NewtonPerSquareMeter:
180180
return TryConvert(Pressure.FromNewtonsPerSquareMeter(value), toUnit, out newValue);
181+
case Unit.KilogramForcePerSquareCentimeter:
182+
return TryConvert(Pressure.FromKilogramForcePerSquareCentimeter(value), toUnit, out newValue);
181183
case Unit.Bar:
182184
return TryConvert(Pressure.FromBars(value), toUnit, out newValue);
183185
case Unit.TechnicalAtmosphere:

0 commit comments

Comments
 (0)