mirror of
https://github.com/microsoft/microsoft-ui-xaml.git
synced 2026-10-28 16:35:19 +08:00
TableView: fix build after merging telemetry/TiP with source-reclaim rerank
#12120 added a TiP generation argument to SyncTableViewSourceSort; the RerankCustomSortAfterReclaim call added by #12248 still passed two arguments (C2660). The rerank is control-driven, so it carries no TiP operation (0). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b54b3a5d-2e82-43fa-9664-760e896cc4a3
This commit is contained in:
1 parent
1424e0cfca
commit
32f8ff44af
1 file changed
+2
-1
@@ -105,7 +105,8 @@ void TableView::RerankCustomSortAfterReclaim()
|
||||
const auto preservedSelection = SelectedItemInternal();
|
||||
try
|
||||
{
|
||||
if (SyncTableViewSourceSort(column, direction) && preservedSelection)
|
||||
// A rerank after reclaim is control-driven, not a user sort, so it carries no TiP operation.
|
||||
if (SyncTableViewSourceSort(column, direction, 0) && preservedSelection)
|
||||
{
|
||||
ApplySelection(FindEntryIndexForDataItem(preservedSelection));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user