RichText: Optimized by caching paragraph data and layout

git-svn-id: svn://ultimatepp.org/upp/trunk@1524 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-08-23 17:27:01 +00:00
parent 2cfd8be147
commit 8df3bfccc9
11 changed files with 216 additions and 46 deletions

View file

@ -128,7 +128,7 @@ bool RichText::GetInvalid(PageY& top, PageY& bottom, const Rect& page,
else {
Sync(r_parti, rc);
const Para& pp = part[r_parti].Get<Para>();
if(r_paraocx == pp.cx &&
if(r_paraocx == pp.ccx &&
r_paraocy == Sum(pp.linecy, 0) + pp.ruler + pp.before + pp.after &&
r_keep == pp.keep &&
r_keepnext == pp.keepnext &&