]> sigrok.org Git - pulseview.git/commitdiff
QHexView: Fix selection display
authorSoeren Apel <redacted>
Fri, 20 Dec 2019 09:28:56 +0000 (10:28 +0100)
committerSoeren Apel <redacted>
Fri, 20 Dec 2019 09:28:56 +0000 (10:28 +0100)
pv/views/decoder_output/QHexView.cpp

index d963ae0aa03af632d963233f6bca7fb33f0dcfe2..5c34d61bac5ad9c5022e0db133b2cdcb0eadd8f1 100644 (file)
@@ -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_;
                }