Skip to content

Commit

Permalink
Merge pull request #885 from BigRoy/bug/avoid_redefinition_of_variabl…
Browse files Browse the repository at this point in the history
…e_name_in_burnin_otio

Avoid redefinition of variable name in burnin OTIO
  • Loading branch information
iLLiCiTiT authored Sep 12, 2024
2 parents 63bde65 + 62266c8 commit fde3a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/ayon_core/scripts/slates/slate_base/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,11 @@ def recalculate_by_width(self, value, max_width):
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
Expand Down

0 comments on commit fde3a73

Please sign in to comment.