diff --git a/src/Mod/Arch/ArchRoof.py b/src/Mod/Arch/ArchRoof.py index cb81df88a5..3a422a513c 100644 --- a/src/Mod/Arch/ArchRoof.py +++ b/src/Mod/Arch/ArchRoof.py @@ -438,8 +438,9 @@ class _Roof(ArchComponent.Component): rel = profilCurr["idrel"] if i != rel and 0 <= rel < numEdges: profilRel = self.profilsDico[rel] - # do not use data from the relative profile if it in turn references a relative profile: - if 0 <= profilRel["idrel"] < numEdges: + # do not use data from the relative profile if it in turn references a relative profile + # other than itself: + if 0 <= profilRel["idrel"] < numEdges and rel != profilRel["idrel"]: hgt = self.calcHeight(i) profilCurr["height"] = hgt elif ang == 0.0 and run == 0.0: