Merge pull request #885 from BigRoy/bug/avoid_redefinition_of_variable_name_in_burnin_otio

Avoid redefinition of variable name in burnin OTIO
This commit is contained in:
Jakub Trllo 2024-09-12 10:16:30 +02:00 committed by GitHub
commit fde3a73607
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -486,11 +486,11 @@ class TableField(BaseItem):
line = self.ellide_text
break
for idx, char in enumerate(_word):
for char_index, char in enumerate(_word):
_line = line + char + self.ellide_text
_line_width = font.getsize(_line)[0]
if _line_width > max_width:
if idx == 0:
if char_index == 0:
line = _line
break
line = line + char