* Set DefaultText value in constructor only when the component is dropped in design time so it can be set to ''

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1160 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2010-02-17 19:23:19 +00:00
parent cc85cc8632
commit e7af30be85

View File

@ -30682,8 +30682,8 @@ constructor TCustomVirtualStringTree.Create(AOwner: TComponent);
begin
inherited;
FDefaultText := 'Node';
if (Owner = nil) or (([csReading, csDesigning] * Owner.ComponentState) = [csDesigning]) then
FDefaultText := 'Node';
FInternalDataOffset := AllocateInternalDataArea(SizeOf(Cardinal));
end;