From fcefdc0a8dfecd63616b6445f91b20748ba390c9 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 20 Jul 2015 10:27:25 -0300 Subject: [PATCH] Draft: small fix in DXF importer --- src/Mod/Draft/importDXF.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 546a5b0f6..481fde4e2 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1320,7 +1320,8 @@ def processdxf(document,filename,getShapes=False): newob.ViewObject.FontSize = draftui.fontsize else: st = rawValue(dim,3) - newob.ViewObject.FontSize = float(getdimheight(st))*TEXTSCALING + size = getdimheight(st) or 1 + newob.ViewObject.FontSize = float(size)*TEXTSCALING else: FreeCAD.Console.PrintMessage("skipping dimensions...\n")