Commit 6e3b7b11 authored by konovalovsergey's avatar konovalovsergey

thumbnail error with aspect

parent 80d95d41
...@@ -218,7 +218,7 @@ namespace NSOnlineOfficeBinToPdf ...@@ -218,7 +218,7 @@ namespace NSOnlineOfficeBinToPdf
double h = oInfo.arSizes[nPageIndex].height; double h = oInfo.arSizes[nPageIndex].height;
double dKoef1 = nRasterW / w; double dKoef1 = nRasterW / w;
double dKoef2 = nRasterW / h; double dKoef2 = nRasterH / h;
if (dKoef1 > dKoef2) if (dKoef1 > dKoef2)
dKoef1 = dKoef2; dKoef1 = dKoef2;
......
...@@ -1796,7 +1796,7 @@ namespace NExtractTools ...@@ -1796,7 +1796,7 @@ namespace NExtractTools
pReader->GetPageInfo(i, &dWidth, &dHeight, &dPageDpiX, &dPageDpiY); pReader->GetPageInfo(i, &dWidth, &dHeight, &dPageDpiX, &dPageDpiY);
double dKoef1 = nRasterWCur / dWidth; double dKoef1 = nRasterWCur / dWidth;
double dKoef2 = nRasterWCur / dHeight; double dKoef2 = nRasterHCur / dHeight;
if (dKoef1 > dKoef2) if (dKoef1 > dKoef2)
dKoef1 = dKoef2; dKoef1 = dKoef2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment