code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

Projects Duplicate entries in tree (again) #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello (Kevin),

Some of the recent changes (probably with the tree sorting?). Has caused
the duplicate entries problem on Windows to resurface again. Where when the
tree is refreshed by a page change or document save causes many duplicates
entries to be added to the tree and causes everything to run really slow. I
had fixed this a few revisions ago but can't remember what fixed it before
at moment.

cody

Original issue reported on code.google.com by CodyPrec...@gmail.com on 4 Jun 2008 at 1:05

GoogleCodeExporter commented 9 years ago
Sorry, this defect got lost in my mailbox.  I'm actually not sure what the fix 
was last time either.  The only thing I 
changed in the sorting defect was the OnCompareItems method of MyTreeCtrl.  I 
then added SortChildren calls 
where needed.  Looking at issue 41, that looks like it might be the problem.  
In that issue, you mention that 
SortChildren was causing the problem.  This must be a bug in the wx tree 
control on Windows.

Original comment by Kevin.Da...@gmail.com on 10 Jun 2008 at 2:46

GoogleCodeExporter commented 9 years ago
Ok should be fixed now,

I moved all the node creation to the an TREE_ITEM_EXPANDING handler instead of 
the
ITEM_EXPANDED handler. Windows seems to have a problem with calling 
SortChildren in
an ITEM_EXPANDED handler but does not exhibit this issue in the EXPANDING one. 
No
other behavior changes observed from this change on other platforms.

Original comment by CodyPrec...@gmail.com on 4 Jul 2008 at 8:45

GoogleCodeExporter commented 9 years ago
Move old 'fixed' issues to verified

Original comment by CodyPrec...@gmail.com on 3 Feb 2009 at 8:18