From 03d72db975899002304a9208ab190af13d05a0a1 Mon Sep 17 00:00:00 2001 From: David Oku <84320460+MasterOfLogic1@users.noreply.github.com> Date: Thu, 20 Mar 2025 19:16:01 -0500 Subject: [PATCH] Update simpletypes.py --- src/docx/oxml/simpletypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docx/oxml/simpletypes.py b/src/docx/oxml/simpletypes.py index dd10ab910..df3ab6bb6 100644 --- a/src/docx/oxml/simpletypes.py +++ b/src/docx/oxml/simpletypes.py @@ -262,7 +262,7 @@ class ST_HpsMeasure(XsdUnsignedLong): def convert_from_xml(cls, str_value: str) -> Length: if "m" in str_value or "n" in str_value or "p" in str_value: return ST_UniversalMeasure.convert_from_xml(str_value) - return Pt(int(str_value) / 2.0) + return Pt(float(str_value) / 2.0) @classmethod def convert_to_xml(cls, value: int | Length) -> str: