mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
2cfd8be147
commit
8df3bfccc9
11 changed files with 216 additions and 46 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue