fix: Assertion when there's too many hex editor rows on the screen
This commit is contained in:
parent
cc97c0e525
commit
b32055290a
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user