1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Crashing when scrolling through the hex editor too quickly

This commit is contained in:
WerWolv 2022-02-17 21:49:40 +01:00
parent faaa90fa0d
commit 4c8efed256
2 changed files with 2 additions and 3 deletions

View File

@ -49,6 +49,7 @@
#include <hex.hpp>
#include <hex/api/event.hpp>
#include <hex/helpers/logger.hpp>
#include <string>
@ -687,7 +688,7 @@ struct MemoryEditor
}
}
}
IM_ASSERT(clipper.Step() == false);
clipper.Step();
clipper.End();
ImGui::PopStyleVar(2);
ImGui::EndChild();

View File

@ -124,8 +124,6 @@ namespace hex::plugin::builtin {
}
_this->m_highlights.push_back(std::move(newBlock));
return _this->m_memoryEditor.HighlightFn(data, off, next);
}
if (next && prevColor != currColor) {