From da7a8a8711faa56514cd6c2c2788b5fe8ebaf869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Tue, 12 Apr 2022 18:55:27 +0200 Subject: [PATCH] HexEditor: Don't require the ValueInspectorModel's value size to be i32 --- Userland/Applications/HexEditor/HexEditorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp index 8698d7ebfe..a652e0a51a 100644 --- a/Userland/Applications/HexEditor/HexEditorWidget.cpp +++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp @@ -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()); m_editor->update(); };