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:27:52 +00:00
parent 12d62940bc
commit d3f2c6e505

View File

@@ -491,18 +491,20 @@ void Text::computeGlyphRepresentation()
}
}
if (itr!=_text.end())
{
// skip over spaces and return.
while (*itr==' ') ++itr;
if (*itr=='\n') ++itr;
}
}
else
{
++itr;
}
if (itr!=_text.end())
{
// skip over spaces and return.
while (*itr==' ') ++itr;
if (*itr=='\n') ++itr;
}
// move to new line.
switch(_layout)