summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/pdfinput/pdf-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/internal/pdfinput/pdf-parser.cpp')
-rw-r--r--src/extension/internal/pdfinput/pdf-parser.cpp5
1 files changed, 3 insertions, 2 deletions
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;