diff --git a/Codist/Margins/CommentMarginElement.cs b/Codist/Margins/CommentMarginElement.cs index 8a2f1931..ae94d24e 100644 --- a/Codist/Margins/CommentMarginElement.cs +++ b/Codist/Margins/CommentMarginElement.cs @@ -188,7 +188,7 @@ void DrawMarkers(DrawingContext drawingContext) { if (ClassificationBrushMapper.TryGetValue(c, out b) == false) { continue; } - var y = _ScrollBar.GetYCoordinateOfBufferPosition(new SnapshotPoint(snapshot, tag.Start)); + var y = _ScrollBar.GetYCoordinateOfBufferPosition(tag.TrackingSpan.GetStartPoint(snapshot)); if (lastY + HalfMarkSize > y && lastBrush == b) { // avoid drawing too many closed markers continue;