lcl: store Label color if it differs from clNone without regards to ParentColor

git-svn-id: trunk@16537 -
This commit is contained in:
paul 2008-09-11 02:57:11 +00:00
parent 1fa9302245
commit c20e56842f
2 changed files with 2 additions and 4 deletions

View File

@ -369,9 +369,7 @@ end;
function TCustomLabel.ColorIsStored: boolean;
begin
Result:=(Color<>clNone);
if Result and ParentColor and (Parent<>nil) then
Result:=false;
Result := (Color <> clNone);
end;
{-------------------------------------------------------------------------------

View File

@ -1402,7 +1402,7 @@ type
{ TCustomLabel }
TCustomLabel = class(TGraphicControl)
Private
private
FAlignment: TAlignment;
FFocusControl: TWinControl;
FOptimalFill: Boolean;