[Patch] Pasting clipboard text from other applications doesn't work
Original Reporter info from Mantis: zpeterson @boramis
-
Reporter name: Zoë Peterson
Original Reporter info from Mantis: zpeterson @boramis
- Reporter name: Zoë Peterson
Description:
There's a typo in cocoawsclipboards.pas that means that "Clipboard.HasFormat(CF_TEXT)" doesn't work. Copying/pasting within an LCL application works, but if you copy text in an external application, it won't be supported correctly.
Steps to reproduce:
- Create a new LCL Cocoa application.
- Add an OnCreate with the line
Caption := BoolToStr(Clipboard.HasFormat(CF_TEXT), True);
- Copy plain text from another application, then run the LCL one. Without the patch the caption will say "False"
Mantis conversion info:
- Mantis ID: 34832
- Version: 2.0RC3
- Fixed in revision: 60029 (#f971f7d2)