Opened 10 years ago

Closed 8 years ago

#541 closed defect (fixed)

wrong outline can get displayed for a document

Reported by: rhebus Owned by: zenogantner
Priority: major Milestone:
Component: Outline Version: trunk
Keywords: outline Cc:


Steps to reproduce:
Open a big file and a small file. I did it with Padre/Wx/Main?.pm (big) and Wx/Perl/Dialog?.pm (small.)
Select tab, then (quickly!) select tab.
The outline for is displayed, then after a while, the outline for replaces it.

I would guess that the outline calculation takes longer to complete than the outline calculation, and when it finishes, it doesn't bother to check whether is still the open tab.

This is related to #538, I'd guess.

Attachments (1)

wrong-outline.png (92.5 KB) - added by rhebus 10 years ago.
screengrab showing wrong outline displayed

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by rhebus

screengrab showing wrong outline displayed

comment:1 Changed 10 years ago by Sewi

It also happens when opening files or creating new ones - the outline or function list isn't updated as long as you switch tabs.

comment:2 Changed 9 years ago by zenogantner

  • Keywords outline added
  • Owner set to zenogantner
  • Status changed from new to accepted

I can reproduce this.
It is because the computation of the outline tree is a Task that is started when
the document is switched or (after a certain interval) when the file has changed.

If you switch in the mean time, the task will finish its work nonetheless and
show the computed data.

comment:3 Changed 9 years ago by zenogantner

I think it is fixed in r11400.

comment:4 Changed 9 years ago by szabgab

  • Component changed from editor to Outline

comment:5 Changed 8 years ago by szabgab

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.