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)
|
if(width+currentWidth > Size.X-6)
|
||||||
{
|
{
|
||||||
currentWidth = width;
|
currentWidth = width;
|
||||||
currentWord[0] = '\n';
|
if(currentWord!=rawText)
|
||||||
lines++;
|
{
|
||||||
|
currentWord[0] = '\n';
|
||||||
|
lines++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
currentWidth += width;
|
currentWidth += width;
|
||||||
|
Loading…
Reference in New Issue
Block a user