Martin Vermeer a écrit :
On Sun, Apr 02, 2006 at 09:24:27AM +0200, Abdelrazak Younes wrote:
Abdelrazak Younes a écrit :

...
+       // is it a layout that has no label at all (ex: standard layout)?
+       if (layout->labeltype == LABEL_NO_LABEL)
+               return;

Actually a better optimization would be to put this kind of test into
text.C, around the breakParagraph call to updateCounters. That will help
with paragraph breaking, the most common use case in ordinary editing.
(No need to redo the counters, is there, when you're just adding standard
paragraphs?)
Also the backspacePos0 occurrence could be considered.
I'll try to look at that but I think that the "enumerate" and "itemize" should be quicker too. So optimizing updateCounter is a worthy goal nevertheless.

Thanks,
Abdel.

Reply via email to