]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/XPDFCore.cc
Import of Xpdf 2.01 for merge
[evince.git] / pdf / xpdf / XPDFCore.cc
index 8376ce97d5b5ce85bf352f426cfdea45342fe399..554154cbb70d7fc3c39b20a3201bcda300f9bd28 100644 (file)
@@ -150,6 +150,7 @@ XPDFCore::XPDFCore(Widget shellA, Widget parentWidgetA,
       zoom = maxZoom;
     }
   }
+  delete initialZoom;
 
   scrollX = 0;
   scrollY = 0;
@@ -961,7 +962,7 @@ GString *XPDFCore::extractText(int pageNum,
   if (!doc->okToCopy()) {
     return NULL;
   }
-  textOut = new TextOutputDev(NULL, gFalse, gFalse);
+  textOut = new TextOutputDev(NULL, gFalse, gFalse, gFalse);
   if (!textOut->isOk()) {
     delete textOut;
     return NULL;
@@ -1275,7 +1276,7 @@ void XPDFCore::find(char *s) {
   }
 
   // search following pages
-  textOut = new TextOutputDev(NULL, gFalse, gFalse);
+  textOut = new TextOutputDev(NULL, gFalse, gFalse, gFalse);
   if (!textOut->isOk()) {
     delete textOut;
     goto done;