Qt: Fix non-printing characters in Memory view

This commit is contained in:
Jeffrey Pfau 2015-04-29 01:22:40 -07:00
parent 10d5588d4c
commit a01f9921f5
1 changed files with 3 additions and 3 deletions

View File

@ -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);