diff --git a/src/org/geometerplus/zlibrary/text/view/ZLTextView.java b/src/org/geometerplus/zlibrary/text/view/ZLTextView.java index 3b5592c55..bb13a649f 100644 --- a/src/org/geometerplus/zlibrary/text/view/ZLTextView.java +++ b/src/org/geometerplus/zlibrary/text/view/ZLTextView.java @@ -528,7 +528,7 @@ public abstract class ZLTextView extends ZLTextViewBase { y = getTopMargin(); index = 0; for (ZLTextLineInfo info : lineInfos) { - drawTextLine(page, info, labels[index], labels[index + 1]); + drawTextLine(page, hilites, info, labels[index], labels[index + 1]); y += info.Height + info.Descent + info.VSpaceAfter; ++index; if (index == page.Column0Height) { @@ -883,7 +883,7 @@ public abstract class ZLTextView extends ZLTextViewBase { protected abstract ZLPaintContext.ColorAdjustingMode getAdjustingModeForImages(); private static final char[] SPACE = new char[] { ' ' }; - private void drawTextLine(ZLTextPage page, ZLTextLineInfo info, int from, int to) { + private void drawTextLine(ZLTextPage page, List hilites, ZLTextLineInfo info, int from, int to) { final ZLPaintContext context = getContext(); final ZLTextParagraphCursor paragraph = info.ParagraphCursor; int index = from;