Possible bug in listbrowser class

3 posts / 0 new
Last post
alfkil
alfkil's picture
Offline
Last seen: 2 years 7 months ago
Joined: 2011-05-10 22:02
Possible bug in listbrowser class

This code compiles and runs with -lauto.

  1. #include <proto/exec.h>
  2. #include <proto/intuition.h>
  3. #include <proto/listbrowser.h>
  4. #include <gadgets/listbrowser.h>
  5.  
  6. int main() {
  7. struct ColumnInfo *columnInfo = IListBrowser->AllocLBColumnInfo (2, TAG_DONE);
  8.  
  9. IListBrowser->SetLBColumnInfoAttrs (columnInfo,
  10. LBCIA_Column, 0,
  11. //LBCIA_CopyTitle, TRUE,
  12. LBCIA_Title, "Title1",
  13. LBCIA_Column, 1,
  14. //LBCIA_CopyTitle, TRUE,
  15. LBCIA_Title, "Title2",
  16. TAG_DONE);
  17. return 0;
  18. }

When uncommenting the two lines containing LBCIA_CopyTitle, it gives a Grim Reaper.

I am pretty sure, this must be a bug. Can anyone confirm this? Where does one send bug reports these days?

salass00
salass00's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2011-02-03 11:27
Re: Possible bug in listbrowser class

The original implementation of the LBCIA_CopyTitle had a bug (it was missing a break statement). This was fixed in version 53.70 in January 2016, however I don't think this or a later version have been released yet.

alfkil
alfkil's picture
Offline
Last seen: 2 years 7 months ago
Joined: 2011-05-10 22:02
Re: Possible bug in listbrowser class

Thanks for the reply. Good to know. I have fixed my own code with a strdup() statement. I guess it's going to be fine for now.

Log in or register to post comments