Skip to content

Commit 99471b6

Browse files
committed
Enable layer editing before digitizing geometry.
1 parent 16d2aac commit 99471b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arho_feature_template/plugin.py

+2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ def show_land_use_plan_dialog(self):
192192
land_use_plan_layer = layers[0]
193193

194194
if land_use_plan_layer:
195+
if not land_use_plan_layer.isEditable():
196+
land_use_plan_layer.startEditing()
195197
self.land_use_plan_templater.start_digitizing_for_layer(land_use_plan_layer)
196198

197199
def load_existing_land_use_plan(self) -> None:

0 commit comments

Comments
 (0)