LazReport: Fixed loading FreeReport files with TfrCheckBoxView (where CheckBox does not have Checked property).

Patch by https://gitlab.com/michalgw, issue #41326.

(cherry picked from commit 63dc9e6f2c)
This commit is contained in:
Maxim Ganetsky 2025-01-10 02:02:18 +03:00
parent a0ac8baed0
commit aebc30192c

View File

@ -174,7 +174,9 @@ end;
procedure TfrCheckBoxView.LoadFromStream(Stream: TStream);
begin
inherited LoadFromStream(Stream);
Stream.Read(fChecked, SizeOf(fChecked));
// CheckBox from FreeReport does not have "Checked" property
if frVersion > 23 then
Stream.Read(fChecked, SizeOf(fChecked));
end;
procedure TfrCheckBoxView.SaveToStream(Stream: TStream);