From d6e9fad60e28fa17aa06290f4c9bf62e2d63eb17 Mon Sep 17 00:00:00 2001 From: Diego Mateos Date: Mon, 28 Aug 2023 14:08:04 +0200 Subject: [PATCH] Tables: Fix typo in TableGetSortSpecs comment + amend comment. (#6755) --- imgui_tables.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imgui_tables.cpp b/imgui_tables.cpp index 1edfc6992..d0d30ad4c 100644 --- a/imgui_tables.cpp +++ b/imgui_tables.cpp @@ -2673,8 +2673,9 @@ void ImGui::TableDrawBorders(ImGuiTable* table) //------------------------------------------------------------------------- // Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set) -// You can sort your data again when 'SpecsChanged == true'. It will be true with sorting specs have changed since -// last call, or the first time. +// When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have +// changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, +// else you may wastefully sort your data every frame! // Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()! ImGuiTableSortSpecs* ImGui::TableGetSortSpecs() {