diff --git a/lcl/include/dbedit.inc b/lcl/include/dbedit.inc index 6760347914..547094ebbe 100644 --- a/lcl/include/dbedit.inc +++ b/lcl/include/dbedit.inc @@ -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