Qt: Fix non-printing characters in Memory view
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Apr 2015 01:22:40 -0700
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/platform/qt/MemoryModel.cpp
→
src/platform/qt/MemoryModel.cpp
@@ -37,9 +37,9 @@ m_staticNumbers.append(str);
} 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);