diff options
author | Albert Astals Cid <aacid@kde.org> | 2022-09-27 01:07:13 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2022-09-27 01:07:13 +0200 |
commit | 0ee0a90061abdd8858b1b6141f0e705088df29e9 (patch) | |
tree | b9d7f0ece3c3b96853549c5a4ce54245000c678d /poppler/SplashOutputDev.cc | |
parent | 315ab3006fb24bf47b595343e6a3e90995f2a588 (diff) |
SplashOutputDev::tilingPatternFill: Properly restore CTM on failure
Fixes issue #1292
Diffstat (limited to 'poppler/SplashOutputDev.cc')
-rw-r--r-- | poppler/SplashOutputDev.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 58e27896..6ba98424 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -4457,6 +4457,9 @@ bool SplashOutputDev::tilingPatternFill(GfxState *state, Gfx *gfxA, Catalog *cat retValue = splash->drawImage(&tilingBitmapSrc, nullptr, &imgData, colorMode, true, result_width, result_height, matc, false, true) == splashOk; } delete tBitmap; + if (!retValue) { + state->setCTM(savedCTM[0], savedCTM[1], savedCTM[2], savedCTM[3], savedCTM[4], savedCTM[5]); + } return retValue; } |