Fixed handling of a series of \n in the text string so that the correct line spacing is maintained.

This commit is contained in:
Robert Osfield 2009-02-08 19:30:30 +00:00
parent 1e886ce539
commit ba68b72a04

View File

@ -491,11 +491,6 @@ void Text::computeGlyphRepresentation()
}
}
}
else
{
++itr;
}
if (itr!=_text.end())
{
@ -504,6 +499,13 @@ void Text::computeGlyphRepresentation()
if (*itr=='\n') ++itr;
}
}
else
{
++itr;
}
// move to new line.
switch(_layout)
{