diff --git a/PROMS/Volian.Controls.Library/VlnFlexGrid.cs b/PROMS/Volian.Controls.Library/VlnFlexGrid.cs index adf81b21..9611e888 100644 --- a/PROMS/Volian.Controls.Library/VlnFlexGrid.cs +++ b/PROMS/Volian.Controls.Library/VlnFlexGrid.cs @@ -893,6 +893,9 @@ namespace Volian.Controls.Library int adj = (int)(btm - top); for (int i = 0; i < errors.Count; i++) { + // The positioning of the the squigle line does not account for mixed font sizes + // should we support having mixed fonts in the table cells, we will need to add + // logic to support it. Point ptStart = _rtf.GetPositionFromCharIndex(errors[i].Start); Point ptEnd = _rtf.GetPositionFromCharIndex(errors[i].Start + errors[i].Length); SquigleLine(e.Graphics, e.Bounds.Left + ptStart.X, e.Bounds.Top + ptStart.Y + adj, e.Bounds.Left + ptEnd.X);