From e756c9d46f977e533da020bc030af69894a68847 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 20 Jan 2022 23:50:57 +0100 Subject: [PATCH] fix: Jumping to bytes would move view to wrong offset --- lib/external/imgui/include/imgui_memory_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/external/imgui/include/imgui_memory_editor.h b/lib/external/imgui/include/imgui_memory_editor.h index b60c3fc32..d2ab09951 100644 --- a/lib/external/imgui/include/imgui_memory_editor.h +++ b/lib/external/imgui/include/imgui_memory_editor.h @@ -739,7 +739,7 @@ struct MemoryEditor if (GotoAddr < mem_size) { ImGui::BeginChild("##scrolling"); - ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight() * 2); + ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + (GotoAddr / Cols) * ImGui::GetTextLineHeight()); ImGui::EndChild(); } GotoAddr = (size_t)-1;