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:
bart 2012-06-03 13:08:31 +00:00
parent 0af1e98ba7
commit 35d55d134a

View File

@ -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;