From f24f1dcde7f36d5cd03f1ae17524f5f1a27c2c4e Mon Sep 17 00:00:00 2001
From: Will Stevens <wstevens@cloudops.com>
Date: Wed, 11 Feb 2015 23:41:14 -0500
Subject: [PATCH] Checking 'FreeCAD.DraftWorkingPlane.axis' before using it

---
 src/Mod/Draft/Draft.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py
index 800af91..68cb516 100644
--- a/src/Mod/Draft/Draft.py
+++ b/src/Mod/Draft/Draft.py
@@ -1799,7 +1799,10 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct
                         if rot < -90:
                             rot += 180
                         #be carefull with the sweep flag
-                    drawing_plane_normal = FreeCAD.DraftWorkingPlane.axis
+                    if hasattr(FreeCAD,"DraftWorkingPlane"):
+                        drawing_plane_normal = FreeCAD.DraftWorkingPlane.axis
+                    else:
+                        drawing_plane_normal = FreeCAD.Vector(0,0,1)
                     if plane: drawing_plane_normal = plane.axis
                     flag_large_arc = (((e.ParameterRange[1] - \
                             e.ParameterRange[0]) / math.pi) % 2) > 1
-- 
1.9.3 (Apple Git-50)

