diff --git a/src/Mod/Arch/ArchPipe.py b/src/Mod/Arch/ArchPipe.py index 7a2e96547d..50b98f344b 100644 --- a/src/Mod/Arch/ArchPipe.py +++ b/src/Mod/Arch/ArchPipe.py @@ -1,4 +1,4 @@ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- #*************************************************************************** #* * @@ -258,10 +258,10 @@ class _ArchPipe(ArchComponent.Component): if len(obj.Profile.Shape.Wires) != 1: FreeCAD.Console.PrintError(translate("Arch","Too many wires in the profile\n")) return - if not obj.Base.Profile.Wires[0].isClosed(): + if not obj.Profile.Shape.Wires[0].isClosed(): FreeCAD.Console.PrintError(translate("Arch","The profile is not closed\n")) return - p = obj.Base.Profile.Wires[0] + p = obj.Profile.Shape.Wires[0] else: if obj.Diameter.Value == 0: return