File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ Other changes:
103
103
(#8451, #7660) [@achabense]
104
104
- TextLinkOpenURL(): fixed default Win32 io.PlatformOpenInShellFn handler to
105
105
handle UTF-8 regardless of system regional settings. (#7660) [@achabense]
106
+ - Clipper: Fixed an issue where passing an out of bound index to IncludeItemByIndex()
107
+ could incorrectly offset the final cursor, even if that index was not iterated through.
108
+ One case where it would manifest was calling Combo() with an out of range index. (#8450)
106
109
- Debug Tools: Added io.ConfigDebugHighlightIdConflictsShowItemPicker (defaults to true)
107
110
to allow disabled Item Picker suggestion in user facing builds. (#7961, #7669)
108
111
- Misc: Added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress mouse cursors
Original file line number Diff line number Diff line change @@ -3258,11 +3258,11 @@ static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper)
3258
3258
{
3259
3259
clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted);
3260
3260
clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount);
3261
- if (clipper->DisplayStart > already_submitted) //-V1051
3262
- clipper->SeekCursorForItem(clipper->DisplayStart);
3263
3261
data->StepNo++;
3264
- if (clipper->DisplayStart == clipper->DisplayEnd && data->StepNo < data->Ranges.Size )
3262
+ if (clipper->DisplayStart >= clipper->DisplayEnd)
3265
3263
continue;
3264
+ if (clipper->DisplayStart > already_submitted)
3265
+ clipper->SeekCursorForItem(clipper->DisplayStart);
3266
3266
return true;
3267
3267
}
3268
3268
@@ -3279,7 +3279,7 @@ bool ImGuiListClipper::Step()
3279
3279
ImGuiContext& g = *Ctx;
3280
3280
bool need_items_height = (ItemsHeight <= 0.0f);
3281
3281
bool ret = ImGuiListClipper_StepInternal(this);
3282
- if (ret && (DisplayStart = = DisplayEnd))
3282
+ if (ret && (DisplayStart > = DisplayEnd))
3283
3283
ret = false;
3284
3284
if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false)
3285
3285
IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n");
You can’t perform that action at this time.
0 commit comments