GUI: fixed the dump (dump with RVA=0 now works + view switching fully works)
This commit is contained in:
parent
0ef8c6e2c9
commit
a72ba35712
|
|
@ -46,6 +46,8 @@ void HexDump::printDumpAt(int_t parVA)
|
|||
setTableOffset(-1); //make sure the requested address is always first
|
||||
|
||||
setTableOffset((wRVA + mByteOffset) / wBytePerRowCount); //change the displayed offset
|
||||
|
||||
reloadData();
|
||||
}
|
||||
|
||||
void HexDump::mouseMoveEvent(QMouseEvent* event)
|
||||
|
|
@ -851,12 +853,7 @@ void HexDump::appendResetDescriptor(int width, QString title, bool clickable, Co
|
|||
int_t wRVA = getTableOffset() * getBytePerRowCount() - mByteOffset;
|
||||
clearDescriptors();
|
||||
appendDescriptor(width, title, clickable, descriptor);
|
||||
// fix the tableOffset
|
||||
int wBytePerRowCount = getBytePerRowCount();
|
||||
// Byte offset used to be aligned on the given RVA
|
||||
mByteOffset = (int)((int_t)wRVA % (int_t)wBytePerRowCount);
|
||||
mByteOffset = mByteOffset > 0 ? wBytePerRowCount - mByteOffset : 0;
|
||||
setTableOffset((wRVA + mByteOffset) / wBytePerRowCount);
|
||||
printDumpAt(wRVA + mBase);
|
||||
}
|
||||
else
|
||||
appendDescriptor(width, title, clickable, descriptor);
|
||||
|
|
|
|||
Loading…
Reference in New Issue