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