Bug #15999 2009-07-15 22:01

frithjofh

wrong sorting of items by priority in todo panel

I think I found a small bug in the to-do panel. I'm using a self compiled code::blocks from svn5686. Having various items in the to-do list of the panel, I can sort them by clicking a columns header. For all columns this seems to work just fine, but the priority column just doesn't sort right. A typical sorting here is like " 5 5 1 9 6 1 1 " , clicking again reverts the order alright to " 1 1 6 9 1 5 5 " . But what sorting order this actually is, I have no idea ...

Not really a dangerous bug, but quite annoying ...

EDIT_1: digging a little bit into the behavior I found that when changing the priority manually in the file, this does not have any effect on the to-do panel after refreshing. It just keeps on showing the priority values like they were before editing ... the other values in the line react as expected after editing.

EDIT_2: it seems as if the sorting happens by the int priority value. I just can't find where this value is actually initialized, it should be done somewhere by using the wxString priorityStr value, but it seems as if this never happens correctly. The sorting order is not random either as I tested by closing and reopening a project ...

Category
Application::WrongBehaviour
Group
 
Status
Open
Close date
 
Assigned to
 
cryogen 2010-03-24 06:12

Unable to replicate in SVN 6190 on Win 7/32 with ToDo plugin patches for type selection and C-style comment in doxygen block applied. Looks like it's been fixed.