Skip to content

Commit

Permalink
Minor cleanup, move storage of view code to conditional where it is c…
Browse files Browse the repository at this point in the history
…reated, suggested by @fredkiefer
  • Loading branch information
gcasa committed Jun 17, 2024
1 parent cf7b9eb commit baca2ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/NSOutlineView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2240,10 +2240,11 @@ - (NSView *) viewAtColumn: (NSInteger)column row: (NSInteger)row makeIfNecessary
{
view = [self _prototypeCellViewFromTableColumn: tb];
}

[self _setRenderedView: view forPath: path];
}

[view setFrame: drawingRect];
[self _setRenderedView: view forPath: path];

return view;
}
Expand Down
3 changes: 2 additions & 1 deletion Source/NSTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -7123,10 +7123,11 @@ - (NSView *) viewAtColumn: (NSInteger)column row: (NSInteger)row makeIfNecessary
{
view = [self _prototypeCellViewFromTableColumn: tb];
}

[self _setRenderedView: view forPath: path];
}

[view setFrame: drawingRect];
[self _setRenderedView: view forPath: path];

return view;
}
Expand Down

0 comments on commit baca2ae

Please sign in to comment.