diff --git a/TODO.2pages b/TODO.2pages index 33d20fcea..f358220c2 100644 --- a/TODO.2pages +++ b/TODO.2pages @@ -1,9 +1,9 @@ * FIRST RELEASE ** fix end-of-section processing +** backward scrolling * OPTIONAL ** 3d animation ** "half page turning" ** footer/header ** page delimiter -** page numbering diff --git a/src/org/geometerplus/zlibrary/text/view/ZLTextView.java b/src/org/geometerplus/zlibrary/text/view/ZLTextView.java index b3fb0c5d7..3a1cbcb82 100644 --- a/src/org/geometerplus/zlibrary/text/view/ZLTextView.java +++ b/src/org/geometerplus/zlibrary/text/view/ZLTextView.java @@ -557,7 +557,7 @@ public abstract class ZLTextView extends ZLTextViewBase { private synchronized float computeCharsPerPage() { setTextStyle(ZLTextStyleCollection.Instance().getBaseStyle()); - final int textWidth = getTextAreaWidth(); + final int textWidth = getTextColumnWidth(); final int textHeight = getTextAreaHeight(); final int num = myModel.getParagraphsNumber(); @@ -880,7 +880,11 @@ public abstract class ZLTextView extends ZLTextViewBase { } } } - } while (result.isEndOfParagraph() && result.nextParagraph() && !result.getParagraphCursor().isEndOfSection() && textAreaHeight >= 0); + } while (result.isEndOfParagraph() && result.nextParagraph() && textAreaHeight >= 0 && + (!result.getParagraphCursor().isEndOfSection() || + (page.twoColumnView() && page.LineInfos.size() == page.Column0Height) + ) + ); resetTextStyle(); }