From 19dbd91c8062aa116bb9b5f817bc72f4e5127b94 Mon Sep 17 00:00:00 2001 From: miklosh Date: Sun, 19 Aug 2007 11:42:24 +0000 Subject: Require a pageBox in the constructor for GfxState so that we do not always need to specify a cropbox (bzr r3520) --- src/extension/internal/pdfinput/pdf-parser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/extension/internal/pdfinput/pdf-parser.cpp') diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp index 49c551be5..121e6aa47 100644 --- a/src/extension/internal/pdfinput/pdf-parser.cpp +++ b/src/extension/internal/pdfinput/pdf-parser.cpp @@ -257,7 +257,8 @@ PdfOperator PdfParser::opTab[] = { //------------------------------------------------------------------------ PdfParser::PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA, - int pageNum, int rotate, Dict *resDict, PDFRectangle *cropBox) { + int pageNum, int rotate, Dict *resDict, + PDFRectangle *box, PDFRectangle *cropBox) { int i; @@ -269,7 +270,7 @@ PdfParser::PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *bui res = new GfxResources(xref, resDict, NULL); // initialize - state = new GfxState(72.0, 72.0, cropBox, rotate, gTrue); + state = new GfxState(72.0, 72.0, box, rotate, gTrue); clipHistory = new ClipHistoryEntry(); setDefaultApproximationPrecision(); fontChanged = gFalse; -- cgit v1.2.3