소스 검색

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

Fixed an issue with unit conversion.
Marcin Ziąbek 3 년 전
부모
커밋
5ffeaa3075
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,