From 58b41b95509eeda8ddce6cb7c6a0da3a6e25d9ce Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 16 Nov 2015 16:11:32 -0200 Subject: [PATCH] Arch: Fixed flipped Space names --- src/Mod/Arch/ArchSectionPlane.py | 6 ++++-- src/Mod/Draft/Draft.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index a423027f7..3e6ca0e50 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -324,9 +324,11 @@ class _ArchDrawingView: svg = svg.replace('SWPlaceholder', str(linewidth*st) + 'px') svg = svg.replace('DAPlaceholder', str(da)) if hasattr(self,"spaces"): - if round(self.direction.getAngle(FreeCAD.Vector(0,0,1)),Draft.precision()) in [0,round(math.pi,Draft.precision())]: + if self.spaces and round(self.direction.getAngle(FreeCAD.Vector(0,0,1)),Draft.precision()) in [0,round(math.pi,Draft.precision())]: + svg += '' for s in self.spaces: svg += Draft.getSVG(s,scale=obj.Scale,fontsize=obj.FontSize.Value,direction=self.direction) + svg += '' result = '' result += '