From f947b3bb4c8e362d01b1f35d0df3800cc3657973 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Wed, 1 Aug 2012 10:59:21 -0500 Subject: [PATCH] Fixes Shading.Dummy return type --- src/pattern.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pattern.js b/src/pattern.js index 8d69d3a92..b9715d867 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -38,6 +38,7 @@ var Pattern = (function PatternClosure() { // Both radial and axial shadings are handled by RadialAxial shading. return new Shadings.RadialAxial(dict, matrix, xref, res); default: + TODO('Unsupported shading type: ' + type); return new Shadings.Dummy(); } }; @@ -174,7 +175,12 @@ Shadings.Dummy = (function DummyClosure() { } Dummy.fromIR = function Dummy_fromIR() { - return 'hotpink'; + return { + type: 'Pattern', + getPattern: function Dummy_fromIR_getPattern() { + return 'hotpink'; + } + }; }; Dummy.prototype = {