Clipper: clear DisplayStart/DisplayEnd fields when Step() returns false.

This commit is contained in:
ocornut
2026-02-18 16:08:49 +01:00
parent b8a1f74fd9
commit 635a5c0a12
2 changed files with 3 additions and 0 deletions

View File

@@ -43,6 +43,8 @@ Breaking Changes:
Other Changes:
- Clipper: clear DisplayStart/DisplayEnd fields when Step() returns false.
-----------------------------------------------------------------------
VERSION 1.92.6 (2026-02-17)

View File

@@ -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;
}