Commit 69a39c63 authored by Juha Manninen's avatar Juha Manninen
Browse files

LCL-GTK2: Remove trailing zero when copying to clipboard. Issues #21453, #30071, patch from BBaz.

git-svn-id: trunk@53376 -
parent 4261afaf
......@@ -3678,6 +3678,10 @@ begin
DebugLn('[ClipboardSelectionRequestHandler] Len=',dbgs(BufLength));
// workaround for issues 21453 and 30071.
// gtk_selection_data_set auto adds the required null term. Remove it here.
if (BufLength>0) and (PChar(Buffer+BufLength-1)^ = #0) then
if Buffer<>nil then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment