Attempt to navigate to deleted TOC entry crashes
If an item from the TOC is then deleted from the main document, clicking on that
item's name, which still exists in the TOC window causes LyX to crash and die.
If the item existed, the cursor should jump to that item.
For example:
In a new document, Insert->TOC, then create two sections, one called 'Intro' and
the second 'Method'. Then View->TOC. Now go to document and delete the entire
Method line and move cursor to Intro line. Clicking on Method in the TOC window
causes entire program to die.
Perhaps a call to update the TOC window before trying to place the cursor in the
main document? If item no longer exists in main document, than cursor should
not move.
Change History
(9)
Cc: |
lasgouttes@… added
|
Keywords: |
crash added
|
Milestone: |
→ 1.3.1
|
Severity: |
normal → critical
|
Summary: |
Deleted TOC entry causes crash → Attempt to navigate to deleted TOC entry crashes
|
Version: |
1.2.3 → 1.3.0
|
Owner: |
changed from leeming to levon
|
Keywords: |
fixedintrunk added
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Keywords: |
fixedintrunk removed
|
Wow, yes. I thought we stored only a paragraph ID ?
Clearly not. Angus, I don't even see a good reason to store
the Paragraph *. Looking into it ...