summaryrefslogtreecommitdiff
path: root/src/interface/Label.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/Label.cpp')
-rw-r--r--src/interface/Label.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/interface/Label.cpp b/src/interface/Label.cpp
index fd91086..4be7fb7 100644
--- a/src/interface/Label.cpp
+++ b/src/interface/Label.cpp
@@ -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;