Files
odfstudio/filter/qa
Mike Kaganski 69aae269ec Fix a DPI-dependent test
It fails locally on Windows using 150% scaling with

  - Expected: 9419
  - Actual  : 9437

The original size of page in the PDF is 267.507 x 85.627 pt.
Converting that on 96 DPI gives 356.68 x 114.17 pixels. Without
rounding, that translated to 356 x 114 in vcl::RenderPDFBitmaps.

This adds rounding when calculating bitmap size, giving smaller
error (9446 hmm wide, less than 10 hmm from ideal 9437 mm/100,
compared to almost 20 hmm error before). Also it adds tolerance
to the unit test.

Change-Id: I3cd8f6c0e1235adf2fe1c17f4c56f3667f0132bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131110
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-08 06:45:16 +01:00
..
2022-02-08 13:42:45 +01:00
2022-01-31 17:05:28 +01:00
2022-03-08 06:45:16 +01:00