mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 22:02:51 -06:00
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:
parent
f0c6f94a10
commit
cf28e77ca7
1 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue