summaryrefslogtreecommitdiff
blob: 8a752ac391ca292e84dacfb400d248f62fe9198f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff -ur xpdf-3.01-poppler.orig/PDFCore.cc xpdf-3.01-poppler/PDFCore.cc
--- xpdf-3.01-poppler.orig/PDFCore.cc	2006-02-04 19:59:02.000000000 +0100
+++ xpdf-3.01-poppler/PDFCore.cc	2006-02-04 19:59:55.000000000 +0100
@@ -1271,9 +1271,6 @@
   int x0, y0, x1, y1, t;
   GooString *s;
 
-  if (!doc->okToCopy()) {
-    return NULL;
-  }
   if ((page = findPage(pg))) {
     cvtUserToDev(pg, xMin, yMin, &x0, &y0);
     cvtUserToDev(pg, xMax, yMax, &x1, &y1);
diff -ur xpdf-3.01-poppler.orig/XPDFCore.cc xpdf-3.01-poppler/XPDFCore.cc
--- xpdf-3.01-poppler.orig/XPDFCore.cc	2006-02-04 19:59:02.000000000 +0100
+++ xpdf-3.01-poppler/XPDFCore.cc	2006-02-04 19:59:55.000000000 +0100
@@ -376,9 +376,6 @@
   int pg;
   double ulx, uly, lrx, lry;
 
-  if (!doc->okToCopy()) {
-    return;
-  }
   if (getSelection(&pg, &ulx, &uly, &lrx, &lry)) {
     //~ for multithreading: need a mutex here
     if (currentSelection) {
@@ -1115,11 +1112,7 @@
 #ifndef NO_TEXT_SELECT
 	  if (core->selectULX != core->selectLRX &&
 	      core->selectULY != core->selectLRY) {
-	    if (core->doc->okToCopy()) {
-	      core->copySelection();
-	    } else {
-	      error(-1, "Copying of text from this document is not allowed.");
-	    }
+	    core->copySelection();
 	  }
 #endif
 	}
diff -ur xpdf-3.01-poppler.orig/XPDFViewer.cc xpdf-3.01-poppler/XPDFViewer.cc
--- xpdf-3.01-poppler.orig/XPDFViewer.cc	2006-02-04 19:59:02.000000000 +0100
+++ xpdf-3.01-poppler/XPDFViewer.cc	2006-02-04 19:59:55.000000000 +0100
@@ -2390,10 +2390,6 @@
   PSOutputDev *psOut;
 
   doc = viewer->core->getDoc();
-  if (!doc->okToPrint()) {
-    error(-1, "Printing this document is not allowed.");
-    return;
-  }
 
   viewer->core->setBusyCursor(gTrue);