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

[QUAD] Bug: Avoid redefinition of variable name in burnin OTIO #6314

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openpype/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
Loading