From 9650218bb81a1602757455c219374eeb5823dc1d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 21 Sep 2017 01:40:44 +0200 Subject: [PATCH] Qt: fix log stacking bug when wordwrap occurs --- rpcs3/rpcs3qt/log_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/log_frame.cpp b/rpcs3/rpcs3qt/log_frame.cpp index ae403b356d..f0fae5e36e 100644 --- a/rpcs3/rpcs3qt/log_frame.cpp +++ b/rpcs3/rpcs3qt/log_frame.cpp @@ -371,7 +371,7 @@ void log_frame::UpdateUI() m_log_counter++; suffix = QString(" x%1").arg(m_log_counter); m_log->moveCursor(QTextCursor::End, QTextCursor::MoveAnchor); - m_log->moveCursor(QTextCursor::StartOfLine, QTextCursor::MoveAnchor); + m_log->moveCursor(QTextCursor::StartOfBlock, QTextCursor::MoveAnchor); m_log->moveCursor(QTextCursor::End, QTextCursor::KeepAnchor); m_log->textCursor().removeSelectedText(); m_log->textCursor().deletePreviousChar();