mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:39:14 +02:00
LCL-GTK2: Remove a leftover GTK_REMOVE_CLIPBOARD_NULL block. The bug was fixed in r58530 #c3fff83320.
git-svn-id: trunk@61134 -
This commit is contained in:
parent
677180e6e5
commit
3b4da7a6b6
@ -3502,11 +3502,6 @@ begin
|
|||||||
GetMem(Buffer,BufLength);
|
GetMem(Buffer,BufLength);
|
||||||
Assert(Assigned(Buffer) and (BufLength>0), 'SetData: GTK2 clipboard Buffer=Nil or empty.');
|
Assert(Assigned(Buffer) and (BufLength>0), 'SetData: GTK2 clipboard Buffer=Nil or empty.');
|
||||||
MemStream.Read(Buffer^,BufLength);
|
MemStream.Read(Buffer^,BufLength);
|
||||||
{$IFDEF GTK_REMOVE_CLIPBOARD_NULL}
|
|
||||||
// Issue #21453. gtk_selection_data_set adds the required null. Remove it here.
|
|
||||||
if PChar(Buffer+BufLength-1)^ = #0 then
|
|
||||||
dec(BufLength);
|
|
||||||
{$ENDIF}
|
|
||||||
gtk_selection_data_set(SelectionData,SelectionData^.Target,8,Buffer,BufLength);
|
gtk_selection_data_set(SelectionData,SelectionData^.Target,8,Buffer,BufLength);
|
||||||
FreeMem(Buffer);
|
FreeMem(Buffer);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user