mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 23:19:28 +02:00
lcl: fix clipboard paste in DBEdit. Part of 20326
git-svn-id: trunk@32462 -
This commit is contained in:
parent
414a4a4d6e
commit
ce952d5a7a
@ -255,7 +255,15 @@ end;
|
||||
procedure TDBEdit.LMPasteFromClip(var Message: TLMessage);
|
||||
begin
|
||||
if not IsReadOnly then
|
||||
begin
|
||||
//LCL changes the Text before LM_PASTE is called and not after like Delphi. Issue 20330
|
||||
//When Edit is called the Text property is reset to the previous value
|
||||
//Add a workaround while bug is not fixed
|
||||
FDataLink.OnDataChange := nil;
|
||||
FDatalink.Edit;
|
||||
FDataLink.Modified;
|
||||
FDataLink.OnDataChange := @DataChange;
|
||||
end;
|
||||
inherited LMPasteFromClip(Message);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user