From 20f017736abfbb1a5323c91ffc92eb46aeafad8e Mon Sep 17 00:00:00 2001 From: "arnaud.morvan@camptocamp.com" <arnaud.morvan@camptocamp.com> Date: Sat, 29 Jun 2024 09:59:23 +0200 Subject: [PATCH] Fix topo_bat field name in check --- PreCourlis/widgets/profile_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PreCourlis/widgets/profile_dialog.py b/PreCourlis/widgets/profile_dialog.py index a4c168a..a19b082 100644 --- a/PreCourlis/widgets/profile_dialog.py +++ b/PreCourlis/widgets/profile_dialog.py @@ -378,7 +378,7 @@ class ProfileDialog(QtWidgets.QDialog, FORM_CLASS): # Check if topo_bath field is present if layer is not None: - if layer.fields().indexFromName("topo_bath") == -1: + if layer.fields().indexFromName("topo_bat") == -1: self.message_bar.pushMessage( self.tr("Missing field"), self.tr( -- GitLab