Skip to content

Commit

Permalink
fix #578
Browse files Browse the repository at this point in the history
  • Loading branch information
dmMaze committed Sep 5, 2024
1 parent 28aa13e commit c1ae207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/scene_textlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def line_draw_qt6(painter: QPainter, line: QTextLine, x: float, y: float, select
else:
line.draw(painter, QPointF(x, y))

def line_draw_qt5(painter: QPainter, line: QTextLine, x: float, y: float, selected: bool, selection: QAbstractTextDocumentLayout.Selection = None, char_fmt: CharFontFormat = None, char: str = None):
def line_draw_qt5(painter: QPainter, line: QTextLine, x: float, y: float, selected: bool, selection: QAbstractTextDocumentLayout.Selection = None, char_fmt: CharFontFormat = None, char: str = None, line_width: int = None):
o = None
if selected:
o = QTextLayout.FormatRange()
Expand Down

0 comments on commit c1ae207

Please sign in to comment.