28 lines
869 B
Plaintext
28 lines
869 B
Plaintext
$OpenBSD: patch-xpdf_XRef_cc,v 1.6 2011/10/01 19:46:35 kili Exp $
|
|
--- xpdf/XRef.cc.orig Mon Aug 15 23:08:53 2011
|
|
+++ xpdf/XRef.cc Thu Aug 18 21:10:22 2011
|
|
@@ -806,19 +806,19 @@ void XRef::setEncryption(int permFlagsA, GBool ownerPa
|
|
}
|
|
|
|
GBool XRef::okToPrint(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permPrint);
|
|
+ return (1);
|
|
}
|
|
|
|
GBool XRef::okToChange(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permChange);
|
|
+ return (1);
|
|
}
|
|
|
|
GBool XRef::okToCopy(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permCopy);
|
|
+ return (1);
|
|
}
|
|
|
|
GBool XRef::okToAddNotes(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permNotes);
|
|
+ return (1);
|
|
}
|
|
|
|
Object *XRef::fetch(int num, int gen, Object *obj, int recursion) {
|