diff options
| author | miklosh <miklosh@users.sourceforge.net> | 2007-08-19 11:42:24 +0000 |
|---|---|---|
| committer | miklosh <miklosh@users.sourceforge.net> | 2007-08-19 11:42:24 +0000 |
| commit | 19dbd91c8062aa116bb9b5f817bc72f4e5127b94 (patch) | |
| tree | 734e9b215e1f11e5623a77da025e186b2d930bbd /src/extension/internal | |
| parent | search button and description label add to import from ocal dialog (diff) | |
| download | inkscape-19dbd91c8062aa116bb9b5f817bc72f4e5127b94.tar.gz inkscape-19dbd91c8062aa116bb9b5f817bc72f4e5127b94.zip | |
Require a pageBox in the constructor for GfxState so that we do not always need to specify a cropbox
(bzr r3520)
Diffstat (limited to 'src/extension/internal')
| -rw-r--r-- | src/extension/internal/pdfinput/pdf-parser.cpp | 5 | ||||
| -rw-r--r-- | src/extension/internal/pdfinput/pdf-parser.h | 2 |
2 files changed, 4 insertions, 3 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; diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h index 9caa01106..a40532fca 100644 --- a/src/extension/internal/pdfinput/pdf-parser.h +++ b/src/extension/internal/pdfinput/pdf-parser.h @@ -150,7 +150,7 @@ public: // Constructor for regular output. PdfParser(XRef *xrefA, SvgBuilder *builderA, int pageNum, int rotate, - Dict *resDict, PDFRectangle *cropBox); + Dict *resDict, PDFRectangle *box, PDFRectangle *cropBox); // Constructor for a sub-page object. PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA, |
