added comment about mixed fonts in the spell checker section

This commit is contained in:
John Jenko 2011-06-07 20:33:34 +00:00
parent f66289aacf
commit 67873fd6c6

View File

@ -893,6 +893,9 @@ namespace Volian.Controls.Library
int adj = (int)(btm - top); int adj = (int)(btm - top);
for (int i = 0; i < errors.Count; i++) 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 ptStart = _rtf.GetPositionFromCharIndex(errors[i].Start);
Point ptEnd = _rtf.GetPositionFromCharIndex(errors[i].Start + errors[i].Length); 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); SquigleLine(e.Graphics, e.Bounds.Left + ptStart.X, e.Bounds.Top + ptStart.Y + adj, e.Bounds.Left + ptEnd.X);