From: Soeren Apel Date: Fri, 20 Dec 2019 09:28:56 +0000 (+0100) Subject: QHexView: Fix selection display X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=a7af8bb09efb5c5a8e4f188cfc0c2f4a4f469647;hp=d5645564896bd753551b2ad814cefafd4e29a6d4 QHexView: Fix selection display --- diff --git a/pv/views/decoder_output/QHexView.cpp b/pv/views/decoder_output/QHexView.cpp index d963ae0a..5c34d61b 100644 --- a/pv/views/decoder_output/QHexView.cpp +++ b/pv/views/decoder_output/QHexView.cpp @@ -363,6 +363,9 @@ void QHexView::paintEvent(QPaintEvent *event) val = QString::number((byte_value & 0xF), 16).toUpper(); painter.drawText(x + charWidth_, y, val); + if ((pos >= selectBegin_) && (pos < selectEnd_ - 1) && (i < BYTES_PER_LINE - 1)) + painter.drawText(x + 2 * charWidth_, y, QString(' ')); + x += 3 * charWidth_; }