SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
textproc/xpdf/patches/patch-xpdf_XRef_cc
Normal file
26
textproc/xpdf/patches/patch-xpdf_XRef_cc
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- xpdf/XRef.cc.orig Wed May 28 20:50:50 2014
|
||||
+++ xpdf/XRef.cc Fri May 30 14:26:13 2014
|
||||
@@ -958,19 +958,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) {
|
Loading…
Add table
Add a link
Reference in a new issue