diff --git a/src/ui/bigtext/bigtext.py b/src/ui/bigtext/bigtext.py index 38f5b30..b3a3c36 100644 --- a/src/ui/bigtext/bigtext.py +++ b/src/ui/bigtext/bigtext.py @@ -504,12 +504,9 @@ class InnerBigText(QWidget): y_line_offset = self.char_height for line in self.lines: text = line.line_prepared_for_display() - leftmost_visible_char_index = line.column_to_char(self._left_offset) - rightmost_visible_char_index = line.column_to_char(self._left_offset + math.ceil(self.columns_shown())) - text = text[ - leftmost_visible_char_index:rightmost_visible_char_index] # reduce string to the visible section before drawing + text = text[self._left_offset:self._left_offset + math.ceil( + self.columns_shown())] # reduce string to the visible section before drawing painter.drawText(0, y_line_offset, text) - # painter.drawText(left_offset, y_line_offset, text) y_line_offset = y_line_offset + self.char_height painter.end()