TPostScriptPrinterCanvas.ClipRect is empty-rect until explicitly set by user
Original Reporter info from Mantis: Yogi
-
Reporter name: Joachim Paepke
Original Reporter info from Mantis: Yogi
- Reporter name: Joachim Paepke
Description:
The ClipRect of TPostScriptPrinterCanvas is never initialized and therefor always returns an empty rect with Rect(0,0,0,0)
I propose to initialize the ClipRect of TPostScriptPrinterCanvas in its BeginDoc
with the Printer.PaperSize.PaperRect.WorkRect. (Attached patch does this)
With this TPostScriptPrinterCanvas can be uses like other canvases where the ClipRect often is used to determine the usable size of the canvas.
Mantis conversion info:
- Mantis ID: 21027
- OS: Linux
- OS Build: 2.6.26-2-686
- Build: 34570
- Platform: i386
- Version: 0.9.31 (SVN)
- Fixed in version: 0.99.1 (SVN)
- Fixed in revision: 37043 (#e62f6775)
- Monitored by: » Yogi (Joachim Paepke)
- Target version: 1.4