From 67873fd6c66a1458a00912437457622a0c40d29f Mon Sep 17 00:00:00 2001 From: John Date: Tue, 7 Jun 2011 20:33:34 +0000 Subject: [PATCH] added comment about mixed fonts in the spell checker section --- PROMS/Volian.Controls.Library/VlnFlexGrid.cs | 3 +++ 1 file changed, 3 insertions(+) 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);