[poppler] poppler/Annot.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Thu Jan 17 06:57:14 PST 2008


 poppler/Annot.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 696eaa47169fb063b7e6998c876926c578b6fbfa
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Thu Jan 17 15:56:59 2008 +0100

    Fix a crash when editing text form fields

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index da6cca9..f03a71d 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -1119,7 +1119,7 @@ void Annot::drawText(GooString *text, GooString *da, GfxFontDict *fontDict,
   }
 
   // get the border width
-  borderWidth = border->getWidth();
+  borderWidth = border ? border->getWidth() : 0;
 
   // setup
   if (txField) {
@@ -1438,7 +1438,7 @@ void Annot::drawListBox(GooString **text, GBool *selection,
   }
 
   // get the border width
-  borderWidth = border->getWidth();
+  borderWidth = border ? border->getWidth() : 0;
 
   // compute font autosize
   if (fontSize == 0) {


More information about the poppler mailing list