Skip to content

Commit

Permalink
Whoops, someone forgot an else! (#1385)
Browse files Browse the repository at this point in the history
Luckily it seems this didn't cause huge memory bloat because there's
a check below that keeps the display flag from being set in low memory
conditions when the node is off the screen.
  • Loading branch information
garrettmoon authored and Adlai-Holler committed Mar 8, 2019
1 parent d102ec8 commit 3547f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Details/ASRangeController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ - (void)_updateVisibleNodeIndexPaths
} else {
if (emptyDisplayRange == YES) {
displayElements = [NSHashTable hashTableWithOptions:NSHashTableObjectPointerPersonality];
} if (equalDisplayVisible == YES) {
} else if (equalDisplayVisible == YES) {
displayElements = visibleElements;
} else {
// Calculating only the Display range means the Preload range is either the same as Display or Visible.
Expand Down

0 comments on commit 3547f5a

Please sign in to comment.