Menu

#147 [wxTreeListCtrl] text search bugs

CVS_HEAD
closed-works-for-me
5
2012-10-15
2012-09-23
No

on behalf of Robert Majewski:

I started to use your widget (ver. 1208), and I think some lines are incorrect:

treelistctrl.cpp:3223 int col, col_start, col_end;
treelistctrl.cpp:3224 if (column >= 0) { col_start = col_end = col; }

"col" is uninitialized, so it shouldn't be used as initializer for "col_start" and "col_end".

treelistctrl.cpp:3993 m_findStr.Append ((const char *)event.GetKeyCode());

event.GetKeyCode() returns int, so it shouldn't be casted to (const char*), my program crashed in this line.

Discussion

  • Ronan Chartois

    Ronan Chartois - 2012-09-23
    • summary: [wxTreeListCtrll] text search bugs --> [wxTreeListCtrl] text search bugs
    • status: open --> open-works-for-me
     
  • Ronan Chartois

    Ronan Chartois - 2012-09-23

    Fixed in SVN head.

    - the first point would cause FindItem() to fail when searching on a specific column

    - the second point was in itself just a bad cast, but made me realize that the keyboard search was actually not working properly:
    - it would not always consider the entire tree, but would stop at the end of the tree
    - it would not check the current item for match, but always jump to the next match

    Thanks Robert for reporting the issues!

     
  • Ronan Chartois

    Ronan Chartois - 2012-10-15

    no feedback in 3 weeks, closing

     
  • Ronan Chartois

    Ronan Chartois - 2012-10-15
    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.

MongoDB Logo MongoDB