diff --git a/Topten.RichTextKit/FontRun.cs b/Topten.RichTextKit/FontRun.cs index 859ce83..bbc0db4 100644 --- a/Topten.RichTextKit/FontRun.cs +++ b/Topten.RichTextKit/FontRun.cs @@ -177,9 +177,9 @@ namespace Topten.RichTextKit { var allRuns = Line.TextBlock.FontRuns as List; int index = allRuns.IndexOf(this); - if (index <= 0) + if (index - 1 < 0) return null; - return Line.Runs[index + 1]; + return Line.Runs[index - 1]; } }