From dc3e62d4998a96c68d62273aa351d1184781bb7d Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 25 Oct 2018 10:31:23 +0100 Subject: [PATCH] Clear block background colour when starting a new decode window line --- displaytext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/displaytext.cpp b/displaytext.cpp index e7c9d1a3a..681ba86f3 100644 --- a/displaytext.cpp +++ b/displaytext.cpp @@ -121,7 +121,7 @@ void DisplayText::appendText(QString const& text, QColor bg, QColor fg auto block_format = cursor.blockFormat (); auto format = cursor.blockCharFormat (); format.setFont (char_font_); - format.clearBackground (); + block_format.clearBackground (); if (bg.isValid ()) { block_format.setBackground (bg);