LazReport, fix exported image size in case is not proportional and stretched

git-svn-id: trunk@39250 -
This commit is contained in:
jesus 2012-11-06 17:34:18 +00:00
parent 26aa11a8da
commit faebc27321

View File

@ -313,6 +313,9 @@ begin
PRImage.Parent := PRPanel;
ph := h;
pw := w;
if view.Stretched then
begin
if (View.Flags and flPictRatio<>0) and
@ -323,14 +326,12 @@ begin
begin
L := h;
ph := trunc(w/r + 0.5);
pw := w;
if (View.Flags and flPictCenter<>0) then
y := y + (L-ph) div 2;
end
else
begin
L := w;
ph := h;
pw := trunc(h*r + 0.5);
if (View.Flags and flPictCenter<>0) then
x := x + (L-pw) div 2;