mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 18:21:22 +02:00
UpdateFloatSpinEditText: only update control if Text actually differs. Resolves issue #21639. Based on patch by cobines
git-svn-id: trunk@37500 -
This commit is contained in:
parent
0af1e98ba7
commit
35d55d134a
@ -143,7 +143,8 @@ var
|
||||
newValueText: string;
|
||||
begin
|
||||
newValueText := ASpinEdit.ValueToStr(ANewValue);
|
||||
Windows.SendMessage(ASpinEdit.Handle, WM_SETTEXT, 0, Windows.LPARAM(PChar(newValueText)));
|
||||
if (newValueText <> ASpinEdit.Text) then
|
||||
Windows.SendMessage(ASpinEdit.Handle, WM_SETTEXT, 0, Windows.LPARAM(PChar(newValueText)));
|
||||
end;
|
||||
|
||||
class function TWin32WSCustomFloatSpinEdit.CreateHandle(const AWinControl: TWinControl;
|
||||
|
Loading…
Reference in New Issue
Block a user