[Lazarus] Setting clipboard on Linux adds ending #0

cobines cobines at gmail.com
Sat Mar 10 18:42:17 CET 2012


I see it as: there's no problems when zero is not added, while there
is problem when it is added.

Why LCLQT cuts the zero then if adding it causes no problems? Why
can't LCLGTK2 cut it as well?

Incidentally I found that I don't need to use Clipboard.AsText,
instead I can use this:

Clipboard.Clear;
Clipboard.AddFormat(PredefinedClipboardFormat(pcfText),s[1],length(s));

So, if actually no changes are done, I think that it wouldn't be a problem.

--
cobines




More information about the Lazarus mailing list