mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:19:18 +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);
|
procedure TDBEdit.LMPasteFromClip(var Message: TLMessage);
|
||||||
begin
|
begin
|
||||||
if not IsReadOnly then
|
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.Edit;
|
||||||
|
FDataLink.Modified;
|
||||||
|
FDataLink.OnDataChange := @DataChange;
|
||||||
|
end;
|
||||||
inherited LMPasteFromClip(Message);
|
inherited LMPasteFromClip(Message);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user