On Tue, 2001-09-25 at 19:05, Gerrit P. Haase wrote:
> Something here is wrong (choose.cc, line 796):
> cat->name stays always at "Shells":
> 
>       for (Category *cat = pkg->category; cat; cat = cat->next)
>       {
>         /* insert the package under this category in the list. If this category is 
>not
>            visible, add it */
>         int n=0;
>         while (n < nlines)
>           {
>             /* this should be a generic call to list_sort_cmp */
>             if (lines[n].get_category ()
>                 && cat->name == lines[n].get_category ()->name)
>                 {
                    insert_under (n, line);
strange. ok, well how about this then...

-               n++;
+               n = nlines;

              }
>             n++;
>           }
>         if (n == nlines)
>           {
>             /* the category wasn't visible - insert at the end */
>             insert_category (cat, CATEGORY_COLLAPSED);
>             insert_pkg (pkg);
>           }
>       }
> 
> 



Reply via email to