Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
fix incorrect highlight color after label change
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Aug 2, 2022
1 parent 2d5537b commit ebab4aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions labelImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ def label_item_changed(self, item):
if label != shape.label:
shape.label = item.text()
shape.line_color = generate_color_by_text(shape.label)
shape.fill_color = generate_color_by_text(shape.label)
self.set_dirty()
else: # User probably changed item visibility
self.canvas.set_shape_visible(shape, item.checkState() == Qt.Checked)
Expand Down

0 comments on commit ebab4aa

Please sign in to comment.