Commit 0483a246 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into terraz_dev

No related merge requests found
Showing with 2 additions and 1 deletion
+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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment