Math fail

This commit is contained in:
snowleo 2013-04-06 18:38:49 +03:00
parent 284d7a23ca
commit 4f033d8073

View File

@ -56,7 +56,7 @@ public class BookPager
{
Character letter = pageLine.charAt(pointer);
if (length >= max || (letter == '\u00a7' && length - 1 >= max))
if (length >= max || (letter == '\u00a7' && length + 1 >= max))
{
tempLine = pageLine.substring(start, pointer);
pageLines.add(tempLine);