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

Commit ebab4aa

Browse files
committed
fix incorrect highlight color after label change
1 parent 2d5537b commit ebab4aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

labelImg.py

+1
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ def label_item_changed(self, item):
950950
if label != shape.label:
951951
shape.label = item.text()
952952
shape.line_color = generate_color_by_text(shape.label)
953+
shape.fill_color = generate_color_by_text(shape.label)
953954
self.set_dirty()
954955
else: # User probably changed item visibility
955956
self.canvas.set_shape_visible(shape, item.checkState() == Qt.Checked)

0 commit comments

Comments
 (0)