From e24aa3fb23a14249ec65295b721613862e2b2cf8 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 11 Jun 2017 22:37:31 -0300 Subject: [PATCH] Arch: Fixed small bug in Space --- src/Mod/Arch/ArchSpace.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchSpace.py b/src/Mod/Arch/ArchSpace.py index 040f81ec5e..dd69c75571 100644 --- a/src/Mod/Arch/ArchSpace.py +++ b/src/Mod/Arch/ArchSpace.py @@ -420,7 +420,7 @@ class _ViewProviderSpace(ArchComponent.ViewProviderComponent): vobj.LineColor = (1.0,0.0,0.0,1.0) vobj.DrawStyle = "Dotted" vobj.addProperty("App::PropertyStringList", "Text", "Arch",QT_TRANSLATE_NOOP("App::Property","The text to show. Use $area, $label, $tag, $floor, $walls, $ceiling to insert the respective data")) - vobj.addProperty("App::PropertyFont", "FontName", "Arch",QT_TRANSLATE_NOOP("App::Property","The name of the font")) + vobj.addProperty("App::PropertyFont", "FontName", "Arch",QT_TRANSLATE_NOOP("App::Property","The name of the font")) vobj.addProperty("App::PropertyColor", "TextColor", "Arch",QT_TRANSLATE_NOOP("App::Property","The color of the area text")) vobj.addProperty("App::PropertyLength", "FontSize", "Arch",QT_TRANSLATE_NOOP("App::Property","The size of the text font")) vobj.addProperty("App::PropertyLength", "FirstLine", "Arch",QT_TRANSLATE_NOOP("App::Property","The size of the first line of text")) @@ -508,8 +508,8 @@ class _ViewProviderSpace(ArchComponent.ViewProviderComponent): if t: if hasattr(vobj.Object,"Area"): from FreeCAD import Units - q = Units.Quantity(vobj.Object.Area,Units.Area).getUserPreferred() - qt = vobj.Object.Area/q[1] + q = Units.Quantity(vobj.Object.Area.Value,Units.Area).getUserPreferred() + qt = vobj.Object.Area.Value/q[1] if hasattr(vobj,"Decimals"): if vobj.Decimals == 0: qt = str(int(qt))