mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 06:09:29 +02:00
fixed PaperRect if orientation is different than poPortrait
git-svn-id: trunk@8328 -
This commit is contained in:
parent
0bbe8bab58
commit
8aa48b484f
@ -762,16 +762,17 @@ begin
|
||||
if Margins=1 then
|
||||
begin
|
||||
Result.WorkRect.Right:=TmpPaperRect.WorkRect.Bottom;
|
||||
Result.WorkRect.Left:=TmpPaperRect.WorkRect.Top;
|
||||
Result.WorkRect.Bottom:=TmpPaperRect.WorkRect.Left;
|
||||
Result.WorkRect.Top:=TmpPaperRect.WorkRect.Right;
|
||||
Result.WorkRect.Left:=TmpPaperRect.WorkRect.Left;
|
||||
Result.WorkRect.Bottom:=TmpPaperRect.WorkRect.Right;
|
||||
Result.WorkRect.Top:=TmpPaperRect.WorkRect.Top;
|
||||
end
|
||||
else
|
||||
begin
|
||||
Result.WorkRect.Left:=Result.PhysicalRect.Left+TmpPaperRect.WorkRect.Top;
|
||||
// workrect is margins
|
||||
Result.WorkRect.Left:=Result.PhysicalRect.Left+TmpPaperRect.WorkRect.left;
|
||||
Result.WorkRect.Right:=Result.PhysicalRect.Right-TmpPaperRect.WorkRect.Bottom;
|
||||
Result.WorkRect.Top:=Result.PhysicalRect.Top+TmpPaperRect.WorkRect.Right;
|
||||
Result.WorkRect.Bottom:=Result.PhysicalRect.Bottom-TmpPaperRect.WorkRect.Left;
|
||||
Result.WorkRect.Top:=Result.PhysicalRect.Top+TmpPaperRect.WorkRect.top;
|
||||
Result.WorkRect.Bottom:=Result.PhysicalRect.Bottom-TmpPaperRect.WorkRect.right;
|
||||
end;
|
||||
end;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user