Setting a smaller icon file after a bigger one corrupts project's main icon file
Original Reporter info from Mantis: CryBorg
-
Reporter name: Nyitrai Péter
Original Reporter info from Mantis: CryBorg
- Reporter name: Nyitrai Péter
Description:
If we set a big sized icon file as project main icon through the IDE, and then replace it with a smaller icon file,
then IDE will update project icon file by writing new data to the old file, but apparently not adjusting its size.
Steps to reproduce:
- Start Lazarus IDE with new project.
- Change project main icon to iconbig.ico (see attachments) through Project / Project Options - Project Options / Application.
- Save project
- Change project main icon to iconsmall.ico (see attachments) through Project / Project Options - Project Options / Application.
- Save project again
- Now check project's main icon file [project_name].ico (default name is project1.ico).
Beside it contains new icon data, it sill stores the remnants of the bigger icon file. Just compare it's size with iconbig.ico, it's still the same.
Additional information:
I've renamed the corrupted project icon file to "result.ico" and sent it too.
Mantis conversion info:
- Mantis ID: 27287
- OS: XP
- OS Build: SP3
- Build: 46529
- Platform: x86
- Version: 1.2.6
- Fixed in revision: r59244 (#e0503fa7)