mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 23:21:20 +02:00
Prevent newlines being inserted into the begining of a multiline label/textbox
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user