We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f89ee commit 9108b13Copy full SHA for 9108b13
cYo.Common.Windows/Forms/ItemView.cs
@@ -2670,7 +2670,7 @@ private Rectangle CalcItemPositions(Graphics gr, bool withSort)
2670
if (ItemStackSorter != null)
2671
{
2672
// Chain the stack sorter with the default ItemStackSorter if it exists
2673
- var stackSortComparer = stackSorter is not null ? ItemStackSorter.Chain(stackSorter) : ItemStackSorter; // Default comparer if no specific sorter is found
+ var stackSortComparer = stackSorter is null ? ItemStackSorter : ItemStackSorter.Chain(stackSorter); // Default comparer if no specific sorter is found
2674
group.Items.Sort(stackSortComparer); // Sort the items in the group using the stack sorter
2675
}
2676
StackInfo stackInfo = new StackInfo(group);
0 commit comments