From a01f9921f56c00d6755f85aafccfc1a416664ed4 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 29 Apr 2015 01:22:40 -0700 Subject: [PATCH] Qt: Fix non-printing characters in Memory view --- src/platform/qt/MemoryModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/qt/MemoryModel.cpp b/src/platform/qt/MemoryModel.cpp index 237352c43..44b57cb17 100644 --- a/src/platform/qt/MemoryModel.cpp +++ b/src/platform/qt/MemoryModel.cpp @@ -37,9 +37,9 @@ MemoryModel::MemoryModel(QWidget* parent) } for (int i = 0; i < 128; ++i) { - QChar c(0xFFFD); - if (c.isPrint()) { - c = i; + QChar c(i); + if (!c.isPrint()) { + c = '.'; } QStaticText str = QStaticText(QString(c)); str.prepare(QTransform(), m_font);