Prevent newlines being inserted into the begining of a multiline label/textbox
This commit is contained in:
parent
1d258eab6b
commit
29ac6380ba
@ -71,9 +71,12 @@ void Label::updateMultiline()
|
||||
if(width+currentWidth > Size.X-6)
|
||||
{
|
||||
currentWidth = width;
|
||||
if(currentWord!=rawText)
|
||||
{
|
||||
currentWord[0] = '\n';
|
||||
lines++;
|
||||
}
|
||||
}
|
||||
else
|
||||
currentWidth += width;
|
||||
if(nextSpace)
|
||||
|
Loading…
Reference in New Issue
Block a user