Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Avoid throwing when the first ongui pass is not a layout pass #965

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public bool Render(Rect containingRect, Action<GitLock> singleClick = null,
visibleItems[entry.GitLock.ID] = shouldRenderEntry;
}

if (visibleItems[entry.GitLock.ID])
if (visibleItems.ContainsKey(entry.GitLock.ID) && visibleItems[entry.GitLock.ID])
{
entryRect = RenderEntry(entryRect, entry);
}
Expand Down