mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Assertion when there's too many hex editor rows on the screen
This commit is contained in:
@@ -407,7 +407,7 @@ namespace hex::ui {
|
||||
|
||||
|
||||
m_visibleRowCount = ImGui::GetWindowSize().y / CharacterSize.y;
|
||||
m_visibleRowCount = std::clamp<u32>(m_visibleRowCount, 1, numRows - m_scrollPosition);
|
||||
m_visibleRowCount = std::clamp<i64>(m_visibleRowCount, 1, numRows - m_scrollPosition);
|
||||
|
||||
// Loop over rows
|
||||
for (ImS64 y = m_scrollPosition; y < (m_scrollPosition + m_visibleRowCount + 5) && y < numRows && numRows != 0; y++) {
|
||||
|
||||
Reference in New Issue
Block a user