Components View crash
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
In components view (Menu -> View -> Components, if you Tab to the list, but do not select anything, and then press Enter, the IDE crashes.
Program received signal SIGSEGV, Segmentation fault.
0x0071ee8f in TCOMPONENTLISTFORM__ADDSELECTEDCOMPONENT <
ACOMPONENT=0xffffffff, this=<error reading variable>>
at componentlis.pas: 301
Steps to reproduce:
See above.
Additional information:
In the OnKeyDown procedure, when Key = VK_RETURN, then simply the DoubleClick handler is called, without checking if any item was selected at all.
I attached a possible fix.
Mantis conversion info:
- Mantis ID: 20305
- OS: Windows
- OS Build: Win7
- Build: r32433
- Platform: i386
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.30.1 (SVN)
- Fixed in revision: r32446 (#751cd5b9)
- Target version: 0.99.0