LCL: Prevent removing LCLVersion property when saving a form or frame. Issue #41801.

This commit is contained in:
Juha 2025-08-25 19:17:42 +03:00
parent f5987d2f9f
commit 79fc6daa46
2 changed files with 2 additions and 2 deletions

View File

@ -3187,7 +3187,7 @@ end;
function TForm.LCLVersionIsStored: boolean;
begin
Result:=Parent=nil;
Result := csDesignInstance in ComponentState;
end;
class procedure TForm.WSRegisterClass;

View File

@ -224,7 +224,7 @@ end;
function TFrame.LCLVersionIsStored: boolean;
begin
Result := Parent = nil;
Result := csDesignInstance in ComponentState;
end;
constructor TFrame.Create(TheOwner: TComponent);