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

Commit ad122a2

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelImg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def label_item_changed(self, item):
949949
label = item.text()
950950
if label != shape.label:
951951
shape.label = item.text()
952-
shape.line_color = generate_color_by_text(shape.label)
952+
shape.line_color = shape.fill_color = generate_color_by_text(shape.label)
953953
self.set_dirty()
954954
else: # User probably changed item visibility
955955
self.canvas.set_shape_visible(shape, item.checkState() == Qt.Checked)

0 commit comments

Comments
 (0)