Lars Gullik Bjønnes a écrit :
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
| > This id need only be unique for the current lyx session right?
| > then paragrpah::id() should be good enough.
|
| The problem is that this id is not constant across moves or depth
| changes (as done by the outline function). Wait... I am not sure
| anymore I need them to be constant now that updateToc is called inside
| updateLabels... I'll try that.
Id should be constantd when moving or when changing depth. If it is
not we do something wrong.
It's maybe only when moving that there is a problem.
Only "logical" new paragraphs should get a new id. all other should
retain the one they got on startup.
I think this is because the paragraphs are copied first and then erased
from previous location in outline(UP or DOWN). So they are "logically".
A fix would be to copy in an intermediate ParagraphList, erase from main
ParagraphList and insert back the intermediate ParagraphList. An even
better fix would be to use the splice function that I wanted to
introduce in RandomAccessList but that you rejected ;-)
Abdel.