From: Soeren Apel Date: Fri, 20 Dec 2019 23:10:08 +0000 (+0100) Subject: QHexView: Fix saved ASCII output X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5cdf186dce795efe1280c9688bf8fec8e684803b;p=pulseview.git QHexView: Fix saved ASCII output --- diff --git a/pv/views/decoder_output/QHexView.cpp b/pv/views/decoder_output/QHexView.cpp index 5c34d61b..2fe54bf8 100644 --- a/pv/views/decoder_output/QHexView.cpp +++ b/pv/views/decoder_output/QHexView.cpp @@ -177,6 +177,9 @@ size_t QHexView::create_hex_line(size_t start, size_t end, QString* dest, for (size_t i = offset; i < end; i++) { uint8_t value = get_next_byte(); + if ((value < 0x20) || (value > 0x7E)) + value = '.'; + if (i < start) dest->append(' '); else