Fixed 11874 (leading 0s ignored by debugger)

This commit is contained in:
Matthew Foulds
2019-11-19 18:47:00 +00:00
parent d66050375c
commit 5b6e7aabcf
2 changed files with 9 additions and 6 deletions

View File

@ -379,7 +379,7 @@ void MemoryViewWidget::OnCopyHex()
u64 value = accessors->ReadU64(addr);
QApplication::clipboard()->setText(
QStringLiteral("%1").arg(value, length * 2, 16, QLatin1Char('0')).left(length * 2));
QStringLiteral("%1").arg(value, sizeof(u64) * 2, 16, QLatin1Char('0')).left(length * 2));
}
void MemoryViewWidget::OnContextMenu()