1
0
Fork 0

GUI: space between comment and address in DisassemblyPopup

This commit is contained in:
mrexodia 2016-08-25 17:01:34 +02:00
parent 430746b32e
commit 3dee7fb158
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ void DisassemblyPopup::setAddress(duint Address)
addrText = parent->getAddrText(addr, nullptr);
// Comments
GetCommentFormat(addr, addrComment, &addrCommentAuto);
if(addrComment.length())
addrText.append(' ');
// Calculate width of address
mWidth = std::max(mWidth, mFontMetrics->width(addrText) + mFontMetrics->width(addrComment));
mWidth += charWidth * 6;