poppler/Annot.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 696eaa47169fb063b7e6998c876926c578b6fbfa
Author: Carlos Garcia Campos <[EMAIL PROTECTED]>
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) {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler