Skip to content

Commit

Permalink
Merge pull request yysun#113 from sharwell/fix-112
Browse files Browse the repository at this point in the history
Handle exception thrown when the diff margin is updating when the editor...
  • Loading branch information
yysun committed Dec 21, 2013
2 parents c40dedc + 3672318 commit b432010
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Diff/ViewModel/DiffMarginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ private void MoveToChange(DiffViewModel currentDiffViewModel, int indexModifier)

private void RefreshDiffViewModelPositions()
{
RefreshDiffViewModelPositions(false, null);
try
{
RefreshDiffViewModelPositions(false, null);
}
catch (Exception ex)
{
if (ErrorHandler.IsCriticalException(ex))
throw;
}
}

private void RefreshDiffViewModelPositions(bool approximate, TextViewLayoutChangedEventArgs e)
Expand Down

0 comments on commit b432010

Please sign in to comment.