Fix for issue #1796

This commit is contained in:
sbarman 2012-06-08 22:42:56 -07:00
parent 1c1447e599
commit dd14b3051e
2 changed files with 44 additions and 15 deletions

View file

@ -226,8 +226,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
insertDependency([objId]);
args = [objId, w, h];
var softMask = dict.get('SMask', 'IM') || false;
if (!softMask && image instanceof JpegStream &&
var softMask = dict.get('SMask', 'SM') || false;
var mask = dict.get('Mask') || false;
if (!softMask && !mask && image instanceof JpegStream &&
image.isNativelySupported(xref, resources)) {
// These JPEGs don't need any more processing so we can just send it.
fn = 'paintJpegXObject';