mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 14:02:20 +00:00
HexEditor: Don't require the ValueInspectorModel's value size to be i32
This commit is contained in:
parent
df57536c40
commit
da7a8a8711
Notes:
sideshowbarker
2024-07-17 11:30:44 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: da7a8a8711
Pull-request: https://github.com/SerenityOS/serenity/pull/13640
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue