Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters.

This commit is contained in:
the_fiddler 2008-06-22 16:31:00 +00:00
parent 4b47612234
commit f40073b1b9

View file

@ -207,7 +207,7 @@ namespace OpenTK.Graphics
if (alignment == StringAlignment.Near && !rightToLeft || alignment == StringAlignment.Far && rightToLeft)
{
ICollection<RectangleF> ranges = new List<RectangleF>();
font.MeasureCharacterRanges(text, StringFormat.GenericTypographic, ref ranges);
font.MeasureCharacterRanges(text, ref ranges);
int current = 0;
//foreach (char c in text)