1
0
Fork 0

GUI: This should fix a very rare bug (#365) from bad values

This commit is contained in:
Nukem 2015-11-11 21:55:22 -05:00
parent f8051582a0
commit 1bbc9a998f
2 changed files with 4 additions and 5 deletions

View File

@ -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;
}

View File

@ -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));