HS: Fix HS KP is missing at display update.

setup.py
Pierre-Antoine Rouby 2024-01-24 15:12:39 +01:00
parent 14a2abaebd
commit 3dfdc308e3
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class HydraulicStructuresWindow(PamhyrWindow):
float(profile_kp)
)
if profiles is not None:
if len(profiles) != 0 and profiles is not None:
profile = profiles[0]
self.plot_kpc.set_profile(profile)