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,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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user