From 223dd70b997a2dc6beafa4e6eb19880137b51982 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 10 Dec 2016 11:23:04 -0200 Subject: [PATCH] Arch: Small fix in section plane's Drawing view object --- src/Mod/Arch/ArchSectionPlane.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 8ae5f87010..30310e0969 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -589,7 +589,11 @@ class _ArchDrawingView: def execute(self, obj): if hasattr(obj,"Source"): if obj.Source: - svgbody = getSVG(obj.Source,obj.AlwaysOn,obj.RenderingMode,obj.ShowCut,obj.ShowFill,obj.Scale,obj.LineWidth,obj.FontSize) + if hasattr(obj,"AlwaysOn"): + a = obj.AlwaysOn + else: + a = False + svgbody = getSVG(obj.Source,a,obj.RenderingMode,obj.ShowCut,obj.ShowFill,obj.Scale,obj.LineWidth,obj.FontSize) if svgbody: result = '