From ccf83b992b7f0de00d384d17b1a3406a0fca28ab Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 24 Oct 2022 16:10:05 -0600 Subject: Fix rendering of code lines when scrolling right, fix TokenizedTextView example --- examples/triage/byte.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/triage/byte.cpp b/examples/triage/byte.cpp index b6318d1e..75bf7474 100644 --- a/examples/triage/byte.cpp +++ b/examples/triage/byte.cpp @@ -651,8 +651,8 @@ void ByteView::paintEvent(QPaintEvent* event) break; if (m_lines[y + m_topLine].separator) { - m_render.drawLinearDisassemblyLineBackground( - p, NonContiguousSeparatorLineType, QRect(0, 2 + y * charHeight, event->rect().width(), charHeight), 0); + QRect lineRect = QRect(0, 2 + y * charHeight, event->rect().width(), charHeight); + m_render.drawLinearDisassemblyLineBackground(p, NonContiguousSeparatorLineType, lineRect, lineRect, 0); continue; } -- cgit v1.3.1