[Bug 1232] New: - Treeview refuses to sort

wine-bugs at winehq.com wine-bugs at winehq.com
Sat Jan 18 09:28:04 CST 2003


http://bugs.winehq.com/show_bug.cgi?id=1232

           Summary: Treeview refuses to sort
           Product: Wine
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-gui
        AssignedTo: wine-bugs at winehq.com
        ReportedBy: taviso at sdf.lonestar.org


using Kazaalite with builtin comctl32, if i try to sort a treeview by clicking
on a column title, wine wont sort it and prints this message

err:treeview:TREEVIEW_Sort invalid item hParent=0

as a temporary workaround, i changed the following in TREEVIEW_Sort() from
treeview.c

    /* Check for a valid handle to the parent item */
   if (!TREEVIEW_ValidItem(infoPtr, parent))
   {
        ERR("invalid item hParent=%x\n", (INT)parent);
        return FALSE;
   }

to 
    /* Check for a valid handle to the parent item */
   if (!TREEVIEW_ValidItem(infoPtr, parent))
   {
        ERR("invalid item hParent=%x\n", (INT)parent);
        /* return FALSE; */ /* i still requested a sort.... */
        parent=infoPtr->root;
   }

which does the trick for now, and all columns sort as you would expect.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1232>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.



More information about the wine-bugs mailing list