mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 01:29:08 +02:00
* Correct logic for showing correct initial value editor
git-svn-id: trunk@57529 -
This commit is contained in:
parent
e092279c61
commit
fb0dc6ae2b
@ -250,7 +250,9 @@ end;
|
||||
function TReportVariablesForm.GetType: TResultType;
|
||||
begin
|
||||
if (CBType.ItemIndex in [ord(Low(TResultType))..ord(High(TResultType))]) then
|
||||
Result:=TResultType(CBType.ItemIndex);
|
||||
Result:=TResultType(CBType.ItemIndex)
|
||||
else
|
||||
Result:=rtString;
|
||||
end;
|
||||
|
||||
function TReportVariablesForm.GetCurrentIsExpression: Boolean;
|
||||
@ -339,8 +341,12 @@ Var
|
||||
T : TResultType;
|
||||
|
||||
begin
|
||||
// First hide all
|
||||
For T in TResultType do
|
||||
FValueControls[T].Visible:=(CBType.Itemindex=Ord(T));
|
||||
FValueControls[T].Visible:=False;
|
||||
// Show correct one.
|
||||
// Need to do it like this, because float is used for different types...
|
||||
FValueControls[GetType].Visible:=True;
|
||||
end;
|
||||
|
||||
procedure TReportVariablesForm.SaveCurrentVariable;
|
||||
|
Loading…
Reference in New Issue
Block a user