Ozgur Ugras BARAN wrote:
When demote button is pressed too many times, TOC item dissapears from
the toc dialog, since it is no longer numbered. Hence, promoting back
to the original state from TOC dialog is not possible. Attached patch
is a way of correcting this behaviour. It simply prevents demoting the
item more than document default max toc depth.
What is your idea about the patch?
I didn't look at the patch yet but I don't think this is the right thing
to do. I'd prefer to properly allow non numbered items in the toc. So
for me the correct fix is to not limit the TOC depth at all and to allow
non numbered item in the TocBackend. So, if there is something to fix,
it is not in the TocWidget but in the TocBackend.
Abdel.