Skip to content

Commit

Permalink
fix: Ensure headers are lists in CalendarBase.cs
Browse files Browse the repository at this point in the history
Converted results of GetColumnHeaders() and GetRowHeaders() to lists before assigning to _columnHeaders and _rowHeaders in CalendarBase.cs. This change ensures consistency and allows for list-specific operations.
  • Loading branch information
Stéphane ANDRE (E104915) committed Oct 10, 2024
1 parent fb0825f commit 4df206d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MyNet.Wpf/Controls/CalendarBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,8 +1222,8 @@ protected virtual void BuildCore(CancellationToken cancellationToken)

cancellationToken.ThrowIfCancellationRequested();

_columnHeaders.Set(GetColumnHeaders());
_rowHeaders.Set(GetRowHeaders());
_columnHeaders.Set(GetColumnHeaders().ToList());
_rowHeaders.Set(GetRowHeaders().ToList());

if (_displayDates.Count != dates.Count)
{
Expand Down

0 comments on commit 4df206d

Please sign in to comment.