Fixed handling of a series of \n in the text string so that the correct line spacing is maintained.
This commit is contained in:
parent
1e886ce539
commit
ba68b72a04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user