mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
fix: Crash when sorting Value column
This commit is contained in:
@@ -864,9 +864,9 @@ namespace hex::plugin::builtin::ui {
|
||||
return left->getSizeForSorting() > right->getSizeForSorting();
|
||||
} else if (sortSpecs->Specs->ColumnUserID == ImGui::GetID("value")) {
|
||||
if (sortSpecs->Specs->SortDirection == ImGuiSortDirection_Ascending)
|
||||
return left->getValue() < right->getValue();
|
||||
return left->getValue().toString(true) < right->getValue().toString(true);
|
||||
else
|
||||
return left->getValue() > right->getValue();
|
||||
return left->getValue().toString(true) > right->getValue().toString(true);
|
||||
} else if (sortSpecs->Specs->ColumnUserID == ImGui::GetID("type")) {
|
||||
if (sortSpecs->Specs->SortDirection == ImGuiSortDirection_Ascending)
|
||||
return left->getTypeName() < right->getTypeName();
|
||||
|
||||
Reference in New Issue
Block a user