]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/QHexView.cpp
QHexView: Fix selection display
[pulseview.git] / 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_;
                }