head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.6 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.4 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.2 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.2.0.2 pkgsrc-2011Q1-base:1.2; locks; strict; comment @# @; 1.4 date 2011.07.11.10.44.30; author drochner; state dead; branches; next 1.3; 1.3 date 2011.04.18.17.10.23; author drochner; state Exp; branches; next 1.2; 1.2 date 2011.02.12.14.18.35; author drochner; state Exp; branches; next 1.1; 1.1 date 2011.02.12.10.00.08; author tnn; state Exp; branches; next ; desc @@ 1.4 log @update to 0.1.8 changes: -UI improvements -new manpage -bugfixes -translation updates @ text @$NetBSD: patch-ac,v 1.3 2011/04/18 17:10:23 drochner Exp $ --- src/PDFDocument.cxx.orig 2009-02-28 21:00:35.000000000 +0000 +++ src/PDFDocument.cxx @@@@ -324,7 +324,7 @@@@ PDFDocument::loadMetadata (void) gchar *format = NULL; gchar *keywords = NULL; PopplerPageLayout layout = POPPLER_PAGE_LAYOUT_UNSET; - gchar *linearized = NULL; + gboolean linearized = 0; GTime modDate; PopplerPageMode mode = POPPLER_PAGE_MODE_UNSET; gchar *producer = NULL; @@@@ -680,13 +680,13 @@@@ PDFDocument::setTextSelection (DocumentR //for get text we must exchange y coordinate, don't ask me where logic here. PopplerRectangle textRect = { rect->getX1() / getZoom(), - (pageHeight - rect->getY2() / getZoom()), - rect->getX2() * getZoom() / getZoom(), - (pageHeight - rect->getY1() / getZoom())}; + rect->getY1() / getZoom(), + rect->getX2() / getZoom(), + rect->getY2() / getZoom()}; repairEmpty(textRect); #if defined (HAVE_POPPLER_0_6_0) - gchar *text = poppler_page_get_text(page, POPPLER_SELECTION_GLYPH, + gchar *text = poppler_page_get_selected_text(page, POPPLER_SELECTION_GLYPH, &textRect); #else // !HAVE_POPPLER_0_6_0 gchar *text = poppler_page_get_text(page, &textRect); @ 1.3 log @catch up with an API change in poppler, fixes crash if linearized PDFs are viewed, from IWAMOTO Toshihiro per PR pkg/44870 bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @make the last patch work correctly @ text @d5 9 @ 1.1 log @fix build with poppler-0.16.x @ text @d5 10 a14 1 @@@@ -686,7 +686,7 @@@@ PDFDocument::setTextSelection (DocumentR @