Skip to content

Commit

Permalink
Fix the bug for '-'
Browse files Browse the repository at this point in the history
Fix the bug for '-'
  • Loading branch information
zsalch committed Aug 31, 2018
1 parent bd81db6 commit 29918fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/featurecat/lizzie/WrapString.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ public static void wrapLineInto(String line, List list, FontMetrics fm, int maxW
pos = findBreakBefore(line, guess);
}
}
if (pos == -1)
// fix the bug for '-'
// if (pos == -1)
if (pos <= 0)
pos = guess; // Split in the middle of the word

list.add(line.substring(0, pos).trim());
Expand Down

0 comments on commit 29918fa

Please sign in to comment.