memory viewer: fix horrible overflow that freezes rpcs3

This commit is contained in:
Megamouse 2020-12-17 23:02:43 +01:00
parent 3cfead4ca6
commit ed8e5498d1
1 changed files with 2 additions and 1 deletions

View File

@ -283,7 +283,8 @@ void memory_viewer_panel::resizeEvent(QResizeEvent *event)
else if (m_height_leftover < -font_height)
{
m_height_leftover += font_height;
--m_rowcount;
if (m_rowcount > 0)
--m_rowcount;
ShowMemory();
}
}