RichText fixed issue with screen texts

git-svn-id: svn://ultimatepp.org/upp/trunk@10088 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-07-21 13:38:39 +00:00
parent f0c6f94a10
commit cf28e77ca7

View file

@ -126,8 +126,11 @@ void RichTxt::Advance(int parti, RichContext& rc, RichContext& begin) const
if(rc.py.y > rc.page.bottom)
rc.Page();
}
else
rc.py.y += pp.before + pp.cy + pp.after + pp.ruler;
else {
rc.py.y += pp.before;
begin = rc;
rc.py.y += pp.cy + pp.after + pp.ruler;
}
}
}
@ -187,6 +190,7 @@ void RichTxt::Paint(PageDraw& pw, RichContext& rc, const PaintInfo& _pi) const
}
RichContext begin;
RichContext next = GetAdvanced(parti, rc, begin);
DDUMP(rc.py);
if(next.py >= pi.top) {
RichPara p = Get(parti, *rc.styles, true);
if(pi.spellingchecker) {