diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 796a33258..dd0ff398e 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -2083,7 +2083,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { var defaultVMetrics; var i, ii, j, jj, start, code, widths; if (properties.composite) { - defaultWidth = dict.get('DW') || 1000; + defaultWidth = dict.has('DW') ? dict.get('DW') : 1000; widths = dict.get('W'); if (widths) { diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 080a6f510..490b4c82c 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -145,6 +145,7 @@ !pr6531_2.pdf !pr7352.pdf !bug900822.pdf +!bug1392647.pdf !issue918.pdf !issue1905.pdf !issue2833.pdf diff --git a/test/pdfs/bug1392647.pdf b/test/pdfs/bug1392647.pdf new file mode 100644 index 000000000..cc929772a Binary files /dev/null and b/test/pdfs/bug1392647.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index af3d64516..05e40a972 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -867,6 +867,13 @@ "link": false, "type": "eq" }, + { "id": "bug1392647", + "file": "pdfs/bug1392647.pdf", + "md5": "9770ea476630ca7d560b7c39430f8850", + "rounds": 1, + "link": false, + "type": "eq" + }, { "id": "hudsonsurvey", "file": "pdfs/hudsonsurvey.pdf", "md5": "bf0e6576a7b6c2fe7485bce1b78e006f",