diff --git a/src/Model/Geometry/ProfileXYZ.py b/src/Model/Geometry/ProfileXYZ.py index 896388eff3c04875441b9a43017c9454d8a015ea..14187233482493643ebf33f2f821829a7c4e9913 100644 --- a/src/Model/Geometry/ProfileXYZ.py +++ b/src/Model/Geometry/ProfileXYZ.py @@ -492,10 +492,10 @@ class ProfileXYZ(Profile, SQLSubModel): line = [] if zz[self.number_points-1] < z: - line.append([station[self.number_points-1], z]) - if len(line) > 2: - lines.append(geometry.LineString(line)) - line = [] + line.append([station[self.number_points-1], z]) + if len(line) > 2: + lines.append(geometry.LineString(line)) + line = [] return lines