Stack Overflow when using Column Footer
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
This is not an easy one to reproduce, but it is possible to cause a stack overflow when a column footer is present and the detail row is just the right size. If you catch the problem in the IDE, the call stack is definitive and shows a recursion in lr_class.pas from
CheckPageBreak
NewColumn
ShowBand
TfrBand.Draw
DoDraw
There is probably a mis-calculation somewhere that starts this off, but there should also be something in CheckPageBreak that stops NewColumn being called when the Band is a column Footer. The attached patch adds such a check and seems to result in a correct report being produced.
Mantis conversion info:
- Mantis ID: 27100
- Version: 1.2.6
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 47024 (#9ec6293a)
- Target version: 1.4