diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index 960b3f5b8..97be5c905 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -43,6 +43,8 @@ Breaking Changes: Other Changes: +- Clipper: clear DisplayStart/DisplayEnd fields when Step() returns false. + ----------------------------------------------------------------------- VERSION 1.92.6 (2026-02-17) diff --git a/imgui.cpp b/imgui.cpp index 0260481d4..7f0fc1189 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3289,6 +3289,7 @@ void ImGuiListClipper::End() } TempData = NULL; } + DisplayStart = DisplayEnd = ItemsCount; // Clear this so code which may be reused past last Step() won't trip on a non-empty range. ItemsCount = -1; }