Picture.LoadFromFile uses filename extension
Original Reporter info from Mantis: JoshyFun @joshyfun
-
Reporter name: José Mejuto
Original Reporter info from Mantis: JoshyFun @joshyfun
- Reporter name: José Mejuto
Description:
Picture.LoadFromFile uses the filename extension to detect the graphics format instead the new one based in the binary format detection (much more safe).
Steps to reproduce:
Picture.LoadFromFile('aFileWithoutExtension');
Additional information:
Simple patch attached.
Mantis conversion info:
- Mantis ID: 18453
- OS: Windows
- OS Build: XP SP3
- Build: 28704
- Platform: i386
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 28943 (#2b1ccdaa)
- Target version: 0.99.0