poppler/TextOutputDev.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3db9472e2b016f1b411174273f27848193ab18e5
Author: José Aliste <[email protected]>
Date:   Fri Jan 18 15:22:03 2013 +0100

    Add a null check for gfxFont
    
    Bug #59561

diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index a2198df..b0b53fc 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -32,6 +32,7 @@
 // Copyright (C) 2012 Horst Prote <[email protected]>
 // Copyright (C) 2012 Jason Crain <[email protected]>
 // Copyright (C) 2012 Peter Breitenlohner <[email protected]>
+// Copyright (C) 2013 José Aliste <[email protected]>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -2252,7 +2253,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;
   }
 
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to