From 731cf10207c3534dacaf1ede51676e1508e4ddc4 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 2 Jan 2026 15:36:23 +0100 Subject: [PATCH] fix: Goto setting hex editor scroll position to imprecise value for large addresses #2599 --- plugins/ui/source/ui/hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ui/source/ui/hex_editor.cpp b/plugins/ui/source/ui/hex_editor.cpp index cc2cb0a73..5056cd184 100644 --- a/plugins/ui/source/ui/hex_editor.cpp +++ b/plugins/ui/source/ui/hex_editor.cpp @@ -1074,7 +1074,7 @@ namespace hex::ui { // Check if the targetRowNumber is outside the current visible range if (ImS64(targetRowNumber) < currentTopRow) { // If target is above the current view, scroll just enough to bring it into view at the top - m_scrollPosition = targetRowNumber + m_visibleRowCount * m_jumpPivot - 3; + m_scrollPosition = targetRowNumber + ImS64(m_visibleRowCount * m_jumpPivot - 3); } else if (ImS64(targetRowNumber) > currentBottomRow) { // If target is below the current view, scroll just enough to bring it into view at the bottom m_scrollPosition = targetRowNumber - 3;