1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

HexEditor: Don't require the ValueInspectorModel's value size to be i32

This commit is contained in:
kleines Filmröllchen 2022-04-12 18:55:27 +02:00 committed by Linus Groh
parent df57536c40
commit da7a8a8711

View file

@ -54,7 +54,7 @@ HexEditorWidget::HexEditorWidget()
if (!index.is_valid())
return;
m_selecting_from_inspector = true;
m_editor->set_selection(m_editor->selection_start_offset(), index.data(GUI::ModelRole::Custom).as_i32());
m_editor->set_selection(m_editor->selection_start_offset(), index.data(GUI::ModelRole::Custom).to_integer<size_t>());
m_editor->update();
};