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)
|
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;
|
||||||
|
Reference in New Issue
Block a user