mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix text wrap edge case
This commit is contained in:
1 parent
a9f8608d62
commit
a83003b228
1 file changed
+1
-1
@@ -119,7 +119,7 @@ void WordWrapper::AppendWord(int endIndex, bool addNewline) {
|
||||
}
|
||||
|
||||
// This will include the newline.
|
||||
if (x_ < maxW_) {
|
||||
if (x_ <= maxW_) {
|
||||
out_.append(str_ + lastWordStartIndex, str_ + endIndex);
|
||||
} else {
|
||||
scanForNewline_ = true;
|
||||
|
||||
Reference in new issue
Block a user