From 3430a91c662561d7eb2a55c289c4a750cc497a23 Mon Sep 17 00:00:00 2001 From: Christian Welzel Date: Sat, 25 Feb 2012 19:33:58 +0100 Subject: [PATCH] implemented change in updateFont() --- poppler/SplashOutputDev.cc | 9 +++++++-- poppler/SplashOutputDev.h | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 88b53ab..ed9a4e0 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -1685,8 +1685,13 @@ void SplashOutputDev::updateTransfer(GfxState *state) { splash->setTransfer(red, green, blue, gray); } -void SplashOutputDev::updateFont(GfxState * /*state*/) { - needFontUpdate = gTrue; +void SplashOutputDev::updateFont(GfxState *state, GBool now = gFalse) { + if(now == gFalse) { + needFontUpdate = gTrue; + } + else { + this->doUpdateFont(state); + } } void SplashOutputDev::doUpdateFont(GfxState *state) { diff --git a/poppler/SplashOutputDev.h b/poppler/SplashOutputDev.h index 91e678f..425f5cc 100644 --- a/poppler/SplashOutputDev.h +++ b/poppler/SplashOutputDev.h @@ -225,7 +225,7 @@ public: virtual void updateTransfer(GfxState *state); //----- update text state - virtual void updateFont(GfxState *state); + virtual void updateFont(GfxState *state, GBool now = gFalse); //----- path painting virtual void stroke(GfxState *state); -- 1.7.9