From 47dfe708d943a01121ed998267d7af2c3d89098d Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Sun, 24 Nov 2019 21:04:31 +0100 Subject: [PATCH] Improve Python compatibility According remark which I agree with --- src/Mod/Draft/importSVG.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/importSVG.py b/src/Mod/Draft/importSVG.py index fb19737a30..18ab27f7e8 100644 --- a/src/Mod/Draft/importSVG.py +++ b/src/Mod/Draft/importSVG.py @@ -356,7 +356,7 @@ def getsize(length, mode='discard', base=1): tomm = { '': 25.4/90, # default 'px': 25.4/90, - 'pt': 4/3 * 25.4/90, + 'pt': 4.0/3 * 25.4/90, 'pc': 15 * 25.4/90, 'mm': 1.0, 'cm': 10.0, @@ -369,7 +369,7 @@ def getsize(length, mode='discard', base=1): tomm = { '': 25.4/96, # default 'px': 25.4/96, - 'pt': 4/3 * 25.4/96, + 'pt': 4.0/3 * 25.4/96, 'pc': 15 * 25.4/96, 'mm': 1.0, 'cm': 10.0, @@ -382,7 +382,7 @@ def getsize(length, mode='discard', base=1): topx = { '': 1.0, # default 'px': 1.0, - 'pt': 4/3, + 'pt': 4.0/3, 'pc': 15, 'mm': 90.0/25.4, 'cm': 90.0/254.0, @@ -395,7 +395,7 @@ def getsize(length, mode='discard', base=1): topx = { '': 1.0, # default 'px': 1.0, - 'pt': 4/3, + 'pt': 4.0/3, 'pc': 15, 'mm': 96.0/25.4, 'cm': 96.0/254.0,