From 662ce46971955586f4c6fb13c8c8e53d76e3232d Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 20 Apr 2023 14:52:59 +0200 Subject: [PATCH] Debug Log: Fixed not parsing 0xXXXXXXXX values when the identifier is at the end of the line. --- docs/CHANGELOG.txt | 2 ++ imgui.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index a887cb5a..9f5d1860 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -46,6 +46,8 @@ Other changes: showing when a sorting column has no visible name. (#6342) [@lukaasm] - InputText: Avoid setting io.WantTextInputNextFrame during the deactivation frame. (#6341) [@lukaasm] +- Debug Tools: Debug Log: Fixed not parsing 0xXXXXXXXX values for geo-locating on mouse + hover hover when the identifier is at the end of the line. (#5855) - Backends: Clear bits sets io.BackendFlags on backend Shutdown(). (#6334, #6335] [@GereonV] Potentially this would facilitate switching runtime backend mid-session. - Backends: Win32: Added ImGui_ImplWin32_InitForOpenGL() to facilitate combining raw diff --git a/imgui.cpp b/imgui.cpp index cdd4219a..80e82a16 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -14390,7 +14390,7 @@ void ImGui::ShowDebugLogWindow(bool* p_open) TextUnformatted(line_begin, line_end); ImRect text_rect = g.LastItemData.Rect; if (IsItemHovered()) - for (const char* p = line_begin; p < line_end - 10; p++) + for (const char* p = line_begin; p <= line_end - 10; p++) { ImGuiID id = 0; if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1)