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,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)