mirror of https://gitlab.com/pamhyr/pamhyr2
Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into terraz_dev
commit
0483a2463b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue