mirror of
https://github.com/x64dbg/x64dbg.git
synced 2025-02-22 22:11:55 +00:00
GUI: fixed a strange crash in the HexDump
This commit is contained in:
parent
c3c9f1d04d
commit
d128ead3b5
@ -166,7 +166,7 @@ void HexDump::mouseReleaseEvent(QMouseEvent* event)
|
||||
{
|
||||
mGuiState = HexDump::NoState;
|
||||
|
||||
this->viewport()->repaint();
|
||||
repaint();
|
||||
|
||||
wAccept = false;
|
||||
}
|
||||
@ -221,8 +221,10 @@ void HexDump::printSelected(QPainter* painter, int_t rowBase, int rowOffset, int
|
||||
wSelectionX = x + wI * wItemPixWidth;
|
||||
wSelectionWidth = wItemPixWidth > w - (wSelectionX - x) ? w - (wSelectionX - x) : wItemPixWidth;
|
||||
wSelectionWidth = wSelectionWidth < 0 ? 0 : wSelectionWidth;
|
||||
painter->save();
|
||||
painter->setPen(textColor);
|
||||
painter->fillRect(QRect(wSelectionX, y, wSelectionWidth, h), QBrush(selectionColor));
|
||||
painter->restore();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ void StdTable::mouseMoveEvent(QMouseEvent* event)
|
||||
else
|
||||
setSingleSelection(wRowIndex);
|
||||
|
||||
this->viewport()->repaint();
|
||||
repaint();
|
||||
|
||||
wAccept = false;
|
||||
}
|
||||
@ -82,7 +82,7 @@ void StdTable::mousePressEvent(QMouseEvent* event)
|
||||
|
||||
mGuiState = StdTable::MultiRowsSelectionState;
|
||||
|
||||
viewport()->repaint();
|
||||
repaint();
|
||||
|
||||
wAccept = true;
|
||||
}
|
||||
@ -111,7 +111,7 @@ void StdTable::mouseReleaseEvent(QMouseEvent* event)
|
||||
{
|
||||
mGuiState = StdTable::NoState;
|
||||
|
||||
this->viewport()->repaint();
|
||||
repaint();
|
||||
|
||||
wAccept = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user