You've already forked lazarus-ccr
fpspreadsheet: Fix size calculation for some embedded jpeg images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4548 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -257,8 +257,8 @@ begin
|
|||||||
AStream.Position := p + rec.RecSize;
|
AStream.Position := p + rec.RecSize;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if dpiX = -1 then dpiX := 96;
|
if (dpiX = -1) or (u = 0) then dpiX := 96;
|
||||||
if dpiY = -1 then dpiY := 96;
|
if (dpiY = -1) or (u = 0) then dpiY := 96;
|
||||||
if u = 2 then begin
|
if u = 2 then begin
|
||||||
dpiX := dpiX * 2.54;
|
dpiX := dpiX * 2.54;
|
||||||
dpiY := dpiY * 2.54;
|
dpiY := dpiY * 2.54;
|
||||||
|
Reference in New Issue
Block a user