Skip to content

Commit

Permalink
Fix splitters (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyLuGh committed Apr 26, 2024
1 parent 8c9ca6f commit 27fec6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/HierarchyGrid.Avalonia/Grid.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,7 @@ GridSplitter GetSplitter(int idx)
.HeadersCoordinates.Where(x => x.Definition.Definition.Count() == 1)
.ToArray();

foreach (
var c in headers.Where(t =>
t.Definition is PositionedDefinition pdef && pdef.Definition is ConsumerDefinition
)
)
foreach (var c in headers.Where(t => t.Definition.Definition is ConsumerDefinition))
{
var (coord, def) = c;
var splitter = GetSplitter(splitterCount++);
Expand Down
2 changes: 1 addition & 1 deletion src/HierarchyGrid/Grid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ GridSplitter GetSplitter(int idx)
.HeadersCoordinates.Where(x => x.Definition.Definition.Count() == 1)
.ToArray();

foreach (var c in headers.Where(t => t.Definition is ConsumerDefinition))
foreach (var c in headers.Where(t => t.Definition.Definition is ConsumerDefinition))
{
var (coord, def) = c;
var splitter = GetSplitter(splitterCount++);
Expand Down

0 comments on commit 27fec6d

Please sign in to comment.