T(Float)SpinEditEx: In InitializeWnd set Text to represent FValue, otherwise NullValueBehavious will be applied in call to UpdateControl.

(cherry picked from commit a3ba11e5c3)
This commit is contained in:
Bart 2024-02-21 23:44:31 +01:00 committed by Maxim Ganetsky
parent 8b8bcd3a51
commit 433708a18b

View File

@ -204,6 +204,9 @@ end;
procedure TSpinEditExBase.InitializeWnd;
begin
inherited InitializeWnd;
// at this point Text will be empty, which in UpdateControl will invoke the NullValueBehaviour
// so make sure that Text will represent FValue now
Text := ValueToStr(FValue);
UpdateControl;
end;