From 7a1dc4b2ea1c02a9e18d12586e4acaa67ec52318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Aliste?= Date: Fri, 18 Jan 2013 15:22:03 +0100 Subject: [PATCH] Add a null check for gfxFont --- poppler/TextOutputDev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index bc1eb6d..2f86422 100644 --- a/poppler/TextOutputDev.cc +++ b/poppler/TextOutputDev.cc @@ -2250,7 +2250,7 @@ void TextPage::beginWord(GfxState *state) { // for vertical writing mode, the lines are effectively rotated 90 // degrees - if (state->getFont()->getWMode()) { + if (gfxFont && gfxFont->getWMode()) { rot = (rot + 1) & 3; } -- 1.8.0.1