From 409589d79236939e6d3029f3e40008dccca90101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20Calj=C3=A9?= Date: Wed, 13 Mar 2024 15:37:39 +0100 Subject: [PATCH] Fix issue #71 (#73) --- imodqgis/cross_section/cross_section_widget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imodqgis/cross_section/cross_section_widget.py b/imodqgis/cross_section/cross_section_widget.py index b3db808..9f5b73b 100644 --- a/imodqgis/cross_section/cross_section_widget.py +++ b/imodqgis/cross_section/cross_section_widget.py @@ -472,6 +472,9 @@ def set_variable_layernumbers(self): if layers == NO_LAYERS: self.as_line_checkbox.setChecked(True) self.as_line_checkbox.setEnabled(False) + else: + self.as_line_checkbox.setChecked(False) + self.as_line_checkbox.setEnabled(True) def on_geometries_changed(self): self.iface.mapCanvas().scene().removeItem(self.rubber_band)