Explorar el Código

Merge pull request #119 from B-wareBS/features/unit-conversion-fix

Fixed an issue with unit conversion.
Marcin Ziąbek hace 3 años
padre
commit
5ffeaa3075
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,