mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-01 22:39:28 +02:00
* Fix from Christian Ulrich to import orientation
git-svn-id: trunk@39202 -
This commit is contained in:
parent
9e76882ae6
commit
02dc95a510
@ -701,6 +701,8 @@ begin
|
||||
aPage.PageSize.Width := round(PageToMM(StrToFloatDef(GetProperty(aPageNode,'Width'),aPage.PageSize.Width)));
|
||||
if GetProperty(aPageNode,'Height')<>'' then
|
||||
aPage.PageSize.Height := round(PageToMM(StrToFloatDef(GetProperty(aPageNode,'Height'),aPage.PageSize.Width)));
|
||||
if GetProperty(aPageNode,'Orientation') = 'poLandscape' then
|
||||
aPage.Orientation:=poLandscape;
|
||||
aDataNode := aPageNode.FindNode('Margins');
|
||||
if Assigned(aDataNode) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user