mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
lcl: On TDBEdit.DataChange only set the MaxLength to Field.Size if is a String field and if MaxLength = 0 (Delphi compatible), , fixes bug #15443
git-svn-id: trunk@23321 -
This commit is contained in:
parent
61f6219bdd
commit
defbc455bc
@ -40,7 +40,8 @@ begin
|
||||
end else
|
||||
//otherwise display the pretified/formated text since we can't
|
||||
EditText := FDataLink.Field.DisplayText;
|
||||
MaxLength := FDatalink.Field.Size;
|
||||
if (FDataLink.Field.DataType = ftString) and (MaxLength = 0) then
|
||||
MaxLength := FDatalink.Field.Size;
|
||||
end
|
||||
else begin
|
||||
//todo: uncomment this when TField implements EditMask
|
||||
|
Loading…
Reference in New Issue
Block a user