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
This commit is contained in:
Родитель
e0de408821
Коммит
fe431fbc12
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче