commit 4da12980f72371f894eb2ef8160720bb7f2eae55
parent b39508a7a5fde9f1b27a5ea1b05df1d2de685b54
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 5 Sep 2006 23:09:02 +0000
fixing Mantis 1127 and 1130 (different PDF problems)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/pdf/PDFDoc.h b/src/plugins/pdf/PDFDoc.h
@@ -43,7 +43,7 @@ public:
~PDFDoc();
// Was PDF document successfully opened?
- GBool isOk() { return ok; }
+ GBool isOk() { return (xref != NULL) && ok; }
// Get the error code (if isOk() returns false).
int getErrorCode() { return errCode; }