Skip to content

Commit 89e1e36

Browse files
committed
Fixed bug in UnitConverter.TryConvert() of pressure units to NewtonPerSquareMillimeter and NewtonPerSquareMeter.
1 parent 4379472 commit 89e1e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/UnitsNet/UnitConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,10 @@ private static bool TryConvert(Pressure p, Unit toUnit, out double newValue)
592592
newValue = p.NewtonsPerSquareCentimeter;
593593
return true;
594594
case Unit.NewtonPerSquareMillimeter:
595-
newValue = p.NewtonsPerSquareMeter;
595+
newValue = p.NewtonsPerSquareMillimeter;
596596
return true;
597597
case Unit.NewtonPerSquareMeter:
598-
newValue = p.NewtonsPerSquareMillimeter;
598+
newValue = p.NewtonsPerSquareMeter;
599599
return true;
600600
case Unit.Bar:
601601
newValue = p.Bars;

0 commit comments

Comments
 (0)