From a3ba11e5c3e3c2bc2776e850b7e86d35f4f83958 Mon Sep 17 00:00:00 2001 From: Bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Wed, 21 Feb 2024 23:44:31 +0100 Subject: [PATCH] T(Float)SpinEditEx: In InitializeWnd set Text to represent FValue, otherwise NullValueBehavious will be applied in call to UpdateControl. --- components/lazcontrols/spinex.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lazcontrols/spinex.inc b/components/lazcontrols/spinex.inc index 73bd0a228f..c65316ae9d 100644 --- a/components/lazcontrols/spinex.inc +++ b/components/lazcontrols/spinex.inc @@ -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;