From abdf448f81da9f01a323ceef4cb00df9758d5002 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 4 Jul 2015 00:32:28 -0700 Subject: [PATCH] Qt: Fix memory editing overlay not displaying hex A-F properly --- src/platform/qt/MemoryModel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/MemoryModel.cpp b/src/platform/qt/MemoryModel.cpp index 3492b8350..9da66021e 100644 --- a/src/platform/qt/MemoryModel.cpp +++ b/src/platform/qt/MemoryModel.cpp @@ -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); }