From 237364a4e2ddacf68f385367033a3a89ff621328 Mon Sep 17 00:00:00 2001 From: Dylan Jeannin Date: Tue, 1 Sep 2026 16:57:50 +0200 Subject: [PATCH] Profiles: Fix plotting of empty geometry profiles, causing (non-blocking) error in the console --- src/Model/Geometry/ProfileXYZ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Geometry/ProfileXYZ.py b/src/Model/Geometry/ProfileXYZ.py index 303e4b6d..b2e0198c 100644 --- a/src/Model/Geometry/ProfileXYZ.py +++ b/src/Model/Geometry/ProfileXYZ.py @@ -1003,7 +1003,7 @@ class ProfileXYZ(Profile, SQLSubModel): Projection of the points of the profile on a plane. """ if self.nb_points < 2: - return [0.0] + return [0.0] * self.nb_points else: if self.station_up_to_date: return self._station