LazReport, fix exception catched when debugging program that reads LayoutOrder property on older reports

git-svn-id: trunk@16476 -
This commit is contained in:
jesus 2008-09-07 23:25:23 +00:00
parent d8ca4194ff
commit cf010d10c6

View File

@ -9613,13 +9613,13 @@ begin
rc.Right := XML.GetValue(Path+'Margins/Right/Value', 0); // TODO chk
rc.Bottom := XML.GetValue(Path+'Margins/Bottom/Value', 0); // TODO chk
Margins.AsRect := rc;
RestoreProperty('Orientation',XML.GetValue(Path+'Orientation/Value',''));
RestoreProperty('Orientation',XML.GetValue(Path+'Orientation/Value','poPortrait'));
UseMargins := XML.GetValue(Path+'UseMargins/Value', True); // TODO chk
PrintToPrevPage := XML.GetValue(Path+'PrintToPrevPage/Value', True); // TODO chk
ColCount := XML.GetValue(Path+'ColCount/Value', 1); // TODO chk
ColGap := XML.GetValue(Path+'ColGap/Value', 0);
RestoreProperty('LayoutOrder',XML.GetValue(Path+'LayoutOrder/Value',''));
RestoreProperty('LayoutOrder',XML.GetValue(Path+'LayoutOrder/Value','loColumns'));
ChangePaper(pgSize, Width, Height, Orientation);
end;