BPictureButton Archiving is broken
|Reported by:||MrSunshine||Owned by:||stippi|
|Has a Patch:||no||Platform:||All|
Was tinkering with BPictureButton archiving, and it seems that the archiving code is wrong.
when archiving using the disabled buttons pictures also all of the underlaying pictures gets a copy of the pictures above them
so _e_on will be fine,
_e_off will first have _e_on's data then _e_off data,
_d_on will have _e_on, _e_off, _d_on
_d_off will have _e_on, _e_off, _d_on, _d_off data
this results in after archiving and unarchiving a BPictureButton, allt he button states will have the picture of _e_on
here you might see what i mean, the pictureArchive is never cleared between the adds, so each AddMessage to it will just add another message, then there will be two, three, four messages and each time they are ALL added to the archive.
i hope i explained clearly enough what is happening here =)