mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Profiles: Fix plotting of empty geometry profiles, causing (non-blocking) error in the console
This commit is contained in:
1 parent
c3288b44bb
commit
237364a4e2
1 file changed
+1
-1
@@ -1003,7 +1003,7 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||||||
Projection of the points of the profile on a plane.
|
Projection of the points of the profile on a plane.
|
||||||
"""
|
"""
|
||||||
if self.nb_points < 2:
|
if self.nb_points < 2:
|
||||||
return [0.0]
|
return [0.0] * self.nb_points
|
||||||
else:
|
else:
|
||||||
if self.station_up_to_date:
|
if self.station_up_to_date:
|
||||||
return self._station
|
return self._station
|
||||||
|
|||||||
Reference in new issue
Block a user