mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Fix bug in word wrapper
This commit is contained in:
1 parent
d97b3d6d23
commit
ae709ed1dd
1 file changed
+1
-1
@@ -75,7 +75,7 @@ std::string WordWrapper::Wrapped() {
|
||||
}
|
||||
|
||||
void WordWrapper::WrapBeforeWord() {
|
||||
if (x_ + wordWidth_ > maxW_) {
|
||||
if (x_ + wordWidth_ > maxW_ && out_.size() > 0) {
|
||||
if (IsShy(out_[out_.size() - 1])) {
|
||||
// Soft hyphen, replace it with a real hyphen since we wrapped at it.
|
||||
// TODO: There's an edge case here where the hyphen might not fit.
|
||||
|
||||
Reference in new issue
Block a user