mirror of
https://github.com/x64dbg/x64dbg.git
synced 2024-10-07 10:13:31 +00:00
GUI: use the correct index when displaying the disasm/summary columns in BreakpointsView
closes #1696
This commit is contained in:
parent
88fec2a1d3
commit
95bfa7ec0e
@ -148,7 +148,8 @@ QString BreakpointsView::paintContent(QPainter* painter, dsint rowBase, int rowO
|
|||||||
painter->fillRect(QRect(x, y, w, h), QBrush(col == ColDisasm ? mDisasmSelectionColor : selectionColor));
|
painter->fillRect(QRect(x, y, w, h), QBrush(col == ColDisasm ? mDisasmSelectionColor : selectionColor));
|
||||||
else if(col == ColDisasm)
|
else if(col == ColDisasm)
|
||||||
painter->fillRect(QRect(x, y, w, h), QBrush(mDisasmBackgroundColor));
|
painter->fillRect(QRect(x, y, w, h), QBrush(mDisasmBackgroundColor));
|
||||||
auto & bp = mBps.at(bpIndex(rowBase + rowOffset));
|
auto index = bpIndex(rowBase + rowOffset);
|
||||||
|
auto & bp = mBps.at(index);
|
||||||
auto cellContent = getCellContent(rowBase + rowOffset, col);
|
auto cellContent = getCellContent(rowBase + rowOffset, col);
|
||||||
if(col > ColType && !bp.addr && !bp.active)
|
if(col > ColType && !bp.addr && !bp.active)
|
||||||
{
|
{
|
||||||
@ -169,12 +170,12 @@ QString BreakpointsView::paintContent(QPainter* painter, dsint rowBase, int rowO
|
|||||||
}
|
}
|
||||||
else if(col == ColDisasm)
|
else if(col == ColDisasm)
|
||||||
{
|
{
|
||||||
RichTextPainter::paintRichText(painter, x + 4, y, w - 4, h, 0, mRich.at(rowBase + rowOffset).first, mFontMetrics);
|
RichTextPainter::paintRichText(painter, x + 4, y, w - 4, h, 0, mRich.at(index).first, mFontMetrics);
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
else if(col == ColSummary)
|
else if(col == ColSummary)
|
||||||
{
|
{
|
||||||
RichTextPainter::paintRichText(painter, x + 4, y, w - 4, h, 0, mRich.at(rowBase + rowOffset).second, mFontMetrics);
|
RichTextPainter::paintRichText(painter, x + 4, y, w - 4, h, 0, mRich.at(index).second, mFontMetrics);
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
return cellContent;
|
return cellContent;
|
||||||
|
Loading…
Reference in New Issue
Block a user