GUI: This should fix a very rare bug (#365) from bad values
This commit is contained in:
parent
f8051582a0
commit
1bbc9a998f
|
@ -240,6 +240,10 @@ void HexDump::mouseReleaseEvent(QMouseEvent* event)
|
|||
|
||||
QString HexDump::paintContent(QPainter* painter, dsint rowBase, int rowOffset, int col, int x, int y, int w, int h)
|
||||
{
|
||||
// Don't draw if not debugging
|
||||
if (!DbgIsDebugging())
|
||||
return "";
|
||||
|
||||
// Reset byte offset when base address is reached
|
||||
if(rowBase == 0 && mByteOffset != 0)
|
||||
printDumpAt(mMemPage->getBase(), false, false);
|
||||
|
@ -260,10 +264,7 @@ QString HexDump::paintContent(QPainter* painter, dsint rowBase, int rowOffset, i
|
|||
getString(col - 1, wRva, &richText);
|
||||
RichTextPainter::paintRichText(painter, x, y, w, h, 4, &richText, getCharWidth());
|
||||
}
|
||||
else //paint non-data
|
||||
{
|
||||
|
||||
}
|
||||
return wStr;
|
||||
}
|
||||
|
||||
|
|
|
@ -411,8 +411,6 @@ void CPUSideBar::drawBullets(QPainter* painter, int line, bool isbp, bool isbpdi
|
|||
const int yAdd = (fontHeight - radius) / 2;
|
||||
const int x = viewport()->width() - 10; //initial x
|
||||
|
||||
//painter->drawLine(0, y, viewport()->width(), y); //draw raster
|
||||
|
||||
painter->setRenderHint(QPainter::Antialiasing, true);
|
||||
if(isbpdisabled) //disabled breakpoint
|
||||
painter->setBrush(QBrush(mBulletDisabledBreakpointColor));
|
||||
|
|
Loading…
Reference in New Issue