Selaa lähdekoodia

Fixed an issue with unit conversion.

Fixed an issue where unit conversions from mm to pt would be off by a
factor of 100.

This fixes #118
Chris de Jong-Pobedinskiy 3 vuotta sitten
vanhempi
sitoutus
fe431fbc12
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      QuestPDF/Infrastructure/Unit.cs

+ 1 - 1
QuestPDF/Infrastructure/Unit.cs

@@ -32,7 +32,7 @@ namespace QuestPDF.Infrastructure
                     Point => 1,
                     Meter => 100 / InchToCentimetre * InchToPoints,
                     Centimetre => 1 / InchToCentimetre * InchToPoints,
-                    Millimetre => 10 / InchToCentimetre * InchToPoints,
+                    Millimetre => 0.1f / InchToCentimetre * InchToPoints,
                     Feet => 12 * InchToPoints,
                     Inch => InchToPoints,
                     Mill => InchToPoints / 1000f,