Qt: Fix memory editing overlay not displaying hex A-F properly

This commit is contained in:
Jeffrey Pfau 2015-07-04 00:32:28 -07:00
parent 3c9433b74c
commit abdf448f81
1 changed files with 5 additions and 1 deletions

View File

@ -450,7 +450,11 @@ void MemoryModel::drawEditingText(QPainter& painter, const QPointF& origin) {
painter.drawStaticText(o, m_staticNumbers[b]);
} else {
int b = m_buffer & 0xF;
painter.drawStaticText(o, m_staticAscii[b + '0']);
if (b < 10) {
painter.drawStaticText(o, m_staticAscii[b + '0']);
} else {
painter.drawStaticText(o, m_staticAscii[b - 10 + 'A']);
}
}
o += QPointF(m_letterWidth * 2, 0);
}