fix: Crashing when scrolling through the hex editor too quickly
This commit is contained in:
parent
faaa90fa0d
commit
4c8efed256
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
#include <hex.hpp>
|
#include <hex.hpp>
|
||||||
#include <hex/api/event.hpp>
|
#include <hex/api/event.hpp>
|
||||||
|
#include <hex/helpers/logger.hpp>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -687,7 +688,7 @@ struct MemoryEditor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IM_ASSERT(clipper.Step() == false);
|
clipper.Step();
|
||||||
clipper.End();
|
clipper.End();
|
||||||
ImGui::PopStyleVar(2);
|
ImGui::PopStyleVar(2);
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
|
@ -124,8 +124,6 @@ namespace hex::plugin::builtin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_this->m_highlights.push_back(std::move(newBlock));
|
_this->m_highlights.push_back(std::move(newBlock));
|
||||||
|
|
||||||
return _this->m_memoryEditor.HighlightFn(data, off, next);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next && prevColor != currColor) {
|
if (next && prevColor != currColor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user