Stefan Schimanski schrieb:

Am 31.05.2007 um 10:56 schrieb Michael Gerz:

Abdelrazak Younes schrieb:
Isn't this related to change-tracking?
Change tracking adds meta information to a virtual (i.e. non-existing) end-of-par character at the end of each paragraph.

It does not care for cursor stuff.

(I haven't follow the thread but I hope that you did not kill any CT-related code. (The cursor movement code should be completely CT-free))

How does this meta information look like? Is it a character? Where is it exactly? After endpos() ? Must it be skipped somehwere?

The Paragraph class has an internal CT structure that is updated whenever we insert or delete a character. For end-of-par, the structure also covers position "par.size()" which does not exist.

Example in readParagraph(...):

       // Final change goes to paragraph break:
       par.setChange(par.size(), change);

HTH,
Michael

Reply via email to