From fc27fac68e1281705622ec66ef769eeeb9e49551 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 14 Mar 2024 09:02:08 +0800 Subject: [PATCH] - fixes #262: Debugger console's background not correctly cleared before redrawn. --- RedPandaIDE/widgets/qconsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/widgets/qconsole.cpp b/RedPandaIDE/widgets/qconsole.cpp index 6f5bdc9d..40ef9ce8 100644 --- a/RedPandaIDE/widgets/qconsole.cpp +++ b/RedPandaIDE/widgets/qconsole.cpp @@ -728,7 +728,7 @@ void QConsole::paintEvent(QPaintEvent *event) QPainter cachePainter(mContentImage.get()); cachePainter.setFont(font()); if (viewport()->rect() == rcClip) { - painter.fillRect(rcClip, mBackground); + cachePainter.fillRect(rcClip, mBackground); } paintRows(cachePainter,nL1,nL2); painter.drawImage(rcClip,*mContentImage,rcClip);