summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-30 22:57:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-30 22:57:23 (GMT)
commit89e96237250be5e305ccfb6cedd9530ccf0e3cf2 (patch)
tree2b0e1138a12d20de5c29298bec04b6b3d3683f3f /src/interface
parent288a4f710a9fb20aa0b9410e6414d5684b8fabf4 (diff)
downloadpowder-89e96237250be5e305ccfb6cedd9530ccf0e3cf2.zip
powder-89e96237250be5e305ccfb6cedd9530ccf0e3cf2.tar.gz
Fix word wrapping issue (words moved onto new lines were not being added to the line width)
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/Label.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface/Label.cpp b/src/interface/Label.cpp
index b823977..80387ce 100644
--- a/src/interface/Label.cpp
+++ b/src/interface/Label.cpp
@@ -107,7 +107,8 @@ void Label::updateMultiline()
*wordStart = '\n';
else if(!wordStart)
rawText[charIndex-1] = '\n';
- lineWidth = wordWidth = 0;
+ lineWidth = wordWidth;
+ wordWidth = 0;
lines++;
}
break;