Comment 16 for bug 193927

Revision history for this message
In , Patrick Pfeifer (patrick2000) wrote :

Created attachment 55785
Fix-test-for-rotation.patch

This patch fixes the bug, which stems from the wrong assumption
that rotation can be detected by testing (matrix.xy == 0 && matrix.yx == 0) only.

Defined LOG_CAIRO in CairoOutputDev.cc and checked the output to
make sure the test works, with the old attached pdf: Edited it in vim and changed /Rotate 180 to 0, 90 and 270 ("attempting to reconstruct xref table" succeeded...). Prints "drawImageMaskPrescaled" if the mask is not rotated, and "drawImageMask" if it is, as intended.