BHS: Fix where profile RK has changed.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-10-07 15:26:40 +02:00
1 parent 3adce567df
commit 149b150eda
1 file changed
+2 -1
@@ -155,7 +155,8 @@ class BasicHydraulicStructuresWindow(PamhyrWindow):
profiles = reach.reach.get_profiles_from_rk(float(profile_rk))
else:
profiles = None
if profiles is not None:
if profiles is not None or len(profiles) != 0:
profile = profiles[0]
else:
profile = None