Skip to content

Commit

Permalink
Fix context lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangSpivey committed Jan 2, 2017
1 parent c8eb4f3 commit 2b58ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/UtilsSubtitle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public static Tuple<List<CardInfo>, List<CardInfo>> GetContextCards(int episodeI
Comparison<CardInfo> comparer = delegate (CardInfo a, CardInfo b) {
double aDistance = UtilsCommon.GetMinTimeSpanDistance(a, timeSpan);
double bDistance = UtilsCommon.GetMinTimeSpanDistance(b, timeSpan);
return aDistance < bDistance ? 1 : -1;
return aDistance < bDistance ? -1 : 1;
};
previousLines.Sort(comparer);
previousLines = previousLines.Take(maxNumberCards).ToList();
Expand Down

0 comments on commit 2b58ced

Please sign in to comment.