Clipping not working with fcl-image
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
When clipping is activated for TFPCustomCanvas the entire drawing is inhibited.
Steps to reproduce:
The attached demo draws a circle and two diagonals on a TFPImageCanvas and stores the resulting image in a png file.
When clipping is inactive (comment line 32) the png file shows the circle and the two lines as expected.
When clipping is active (it is supposed to clip away the lower half of the image; uncomment line 32) the image only shows the background, no more circle, no more lines.
Additional information:
The issue is in the PointInside() function of unit clipping where "top" and "bottom" must be exchanged - see attached patch.
Mantis conversion info:
- Mantis ID: 38889
- Fixed in revision: 49373 (#a714cfaf)