Skip to content

Commit

Permalink
don't delete validated labels (morphometrics#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinyamauchi committed Mar 3, 2023
1 parent 4c0f318 commit 9083bd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/morphometrics/_gui/label_curator/label_cleaning.py
Expand Up @@ -171,7 +171,8 @@ def toggle_selected_label_validated(self):
to_layer.data[label_mask] = label_value

# remove the mask from the originating layer
selected_layer.data[label_mask] = 0
if selected_layer is validated_labels_layer:
selected_layer.data[label_mask] = 0

labels_layer.refresh()
validated_labels_layer.refresh()
Expand Down

0 comments on commit 9083bd7

Please sign in to comment.