fix: Crash after evaluating patterns a second time
This commit is contained in:
parent
7f0bdea212
commit
c90aa0a742
@ -520,6 +520,9 @@ namespace hex::plugin::builtin::ui {
|
||||
|
||||
auto sortSpecs = ImGui::TableGetSortSpecs();
|
||||
|
||||
if (patterns.empty())
|
||||
sortedPatterns.clear();
|
||||
|
||||
if (!patterns.empty() && (sortSpecs->SpecsDirty || sortedPatterns.empty())) {
|
||||
sortedPatterns.clear();
|
||||
std::transform(patterns.begin(), patterns.end(), std::back_inserter(sortedPatterns), [](const std::shared_ptr<pl::ptrn::Pattern> &pattern) {
|
||||
|
Loading…
Reference in New Issue
Block a user