From fe431fbc12fac836deaf2ff696bdac5b5a4ca9c0 Mon Sep 17 00:00:00 2001 From: Chris de Jong-Pobedinskiy Date: Mon, 7 Feb 2022 13:56:20 +0100 Subject: [PATCH] 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 --- QuestPDF/Infrastructure/Unit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuestPDF/Infrastructure/Unit.cs b/QuestPDF/Infrastructure/Unit.cs index 3d2cf8d..a4d55fc 100644 --- a/QuestPDF/Infrastructure/Unit.cs +++ b/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,