Call updateCTM with the identity matrix instead of all zeros

The method Gfx::doShowText calls out->updateCTM once with the all-zero
matrix.  This was apparently implemented with the Splash output device
in mind: SplashOutputDev::updateCTM ignores its parameters, and
therefore calling it with a zero matrix is okay.  For other output
devices calling updateCTM with a zero matrix multiplies the CTM
with zero, which breaks further rendering.  See

for an example.

This patch changes the argument to updateCTM in doShowText
from the zero matrix to an identity matrix.  That way, the CTM
is unchanged no matter how the output device implements its
updateCTM method.
1 file changed