From e2a302b8e6b24caddbbbc91a5928bef2db267e45 Mon Sep 17 00:00:00 2001 From: alexs75 Date: Mon, 6 Oct 2014 06:51:05 +0000 Subject: [PATCH] RxFPC:fix error in priperty Value git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3631 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/rx/trunk/curredit.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/rx/trunk/curredit.pas b/components/rx/trunk/curredit.pas index 7b94065a6..2d952f597 100644 --- a/components/rx/trunk/curredit.pas +++ b/components/rx/trunk/curredit.pas @@ -289,12 +289,14 @@ end; function TCustomNumEdit.GetValue: Extended; begin - if not (csDesigning in ComponentState) then + if (not (csDesigning in ComponentState)) and FFocusedDisplay then + begin try UpdateData; except FValue := FMinValue; end; + end; Result := FValue; end;