{
if (this.LayoutLines.FoldingCollection.IsHidden(lineIndex))
continue;
- if (foldingData.IsFirstLine(this.LayoutLines, i))
+ if (foldingData.IsFirstLine(this.LayoutLines, i) && foldingData.End >= lineIndex + lineLength)
render.DrawFoldingMark(foldingData.Expand, this.PageBound.X + this.GetRealtiveX(AreaType.FoldingArea), pos.Y);
}