Clear block background colour when starting a new decode window line

This commit is contained in:
Bill Somerville 2018-10-25 10:31:23 +01:00
parent 8215f3412b
commit dc3e62d499

View File

@ -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);