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)