mirror of https://gitlab.com/pamhyr/pamhyr2
Profiles: Fix plotting of empty geometry profiles, causing (non-blocking) error in the console
parent
c3288b44bb
commit
237364a4e2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue