Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37553181
en ru br
Репозитории ALT
S:4.04-alt1
5.1: 3.02-alt7
4.1: 3.02-alt4.M41.1
4.0: 3.02-alt3
3.0: 3.00-alt5pl3
+backports:3.01-alt0.M30.2
www.altlinux.org/Changes

Группа :: Офис
Пакет: xpdf

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xpdf-3.01-remove_protections.patch
Скачать


--- xpdf-3.01/xpdf/XPDFCore.cc.orig	2005-08-17 08:34:31 +0300
+++ xpdf-3.01/xpdf/XPDFCore.cc	2005-08-19 14:22:26 +0300
@@ -377,9 +377,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) {
@@ -1108,10 +1105,9 @@
 #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.");
+	    if (!core->doc->okToCopy()) {
+	      error(-1, "Note: creator didn't want you to copy text from this document.");
 	    }
 	  }
 #endif
--- xpdf-3.01/xpdf/XPDFViewer.cc.orig	2005-08-17 08:34:31 +0300
+++ xpdf-3.01/xpdf/XPDFViewer.cc	2005-08-19 14:07:02 +0300
@@ -2392,8 +2392,7 @@
 
   doc = viewer->core->getDoc();
   if (!doc->okToPrint()) {
-    error(-1, "Printing this document is not allowed.");
-    return;
+    error(-1, "Note: creator didn't want you to print this document.");
   }
 
   viewer->core->setBusyCursor(gTrue);
--- xpdf-3.01/xpdf/pdftotext.cc.orig	2005-08-17 08:34:31 +0300
+++ xpdf-3.01/xpdf/pdftotext.cc	2005-08-19 14:07:02 +0300
@@ -162,9 +162,7 @@
 
   // check for copy permission
   if (!doc->okToCopy()) {
-    error(-1, "Copying of text from this document is not allowed.");
-    exitCode = 3;
-    goto err2;
+    error(-1, "Note: creator didn't want you to copy text from this document.");
   }
 
   // construct text file name
--- xpdf-3.01/xpdf/pdfimages.cc.orig	2005-08-17 08:34:31 +0300
+++ xpdf-3.01/xpdf/pdfimages.cc	2005-08-19 14:07:02 +0300
@@ -120,9 +120,7 @@
 
   // check for copy permission
   if (!doc->okToCopy()) {
-    error(-1, "Copying of images from this document is not allowed.");
-    exitCode = 3;
-    goto err1;
+    error(-1, "Note: creator didn't want you to copy images from this document.");
   }
 
   // get page range
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin