Remove trailing zero when copying to clipboard (gtk2)
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
LCL adds trailing zero to anything copied to clipboard:
In TClipboard.SetAsText():
SetBuffer(PredefinedClipboardFormat(pcfText),s[1],length(Value)+1);
Note, length(Value)+1 is used.
In Linux this seems to be unneccessary. LCLQT cuts the trailing zero as well. Attached patch makes the LCLGTK2 also remove the trailing zero.
Mailing list discussion:
http://lists.lazarus.freepascal.org/pipermail/lazarus/2012-March/072017.html
Mantis conversion info:
- Mantis ID: 21453
- OS: Debian
- OS Build: Sid
- Build: 35868
- Platform: Linux i386
- Version: 0.9.31 (SVN)
- Fixed in version: 1.10
- Fixed in revision: 58530 (#c3fff833) (r53376 (#69a39c63), r53380 (#b0aef059), r55180 (#abec998f))
- Monitored by: » rayanAyar (Ilya Melnikov), » @martin_frb (Martin Friebe)
- Target version: 1.10